Forum
List Manager Support
List Manager supportForums
Public write access is disabled. Please login
Re: Date setup 11.02.2013 10:01
Hello,
with version 0.0.3 of List Manager you have limited options, we can point you some tweaks to make the changes, but we're afraid you can't apply of all them at the same time, here the options:
- to configure a default order: you can use the 'order' parameter to order the front-view by default. Place there the name of the column you want the order to be applied to. This order is ascending, so if you want a descending view, you also have to modify the front-end view:
Edit
joomla\modules\mod_listmanager\tmpl\content.php
and search for this section
if(colorder!=-1)
orderForColumn[?php echo $seed;?](idorder,colorder);
(replace brackets for the proper less than and greater than symbols, you just have to duplicate the line and and the {} signs to get this:)
if(colorder!=-1){
orderForColumn[?php echo $seed;?](idorder,colorder);
orderForColumn[?php echo $seed;?](idorder,colorder);
}
This way you will have ascending order.
- Date format:
Date format is defined when creating calendar objects, so you should search for this block:
Calendar.setup({inputField:\'fld_'.$seed.$field['id'].'\',ifFormat:\'%Y-%m-%d\',button:\'fld_'.$seed.$field['id'].'_img\'});
and modify the ifFormat parameter (for your case, the line would be as follows:)
Calendar.setup({inputField:\'fld_'.$seed.$field['id'].'\',ifFormat:\'%d-%m-%Y\',button:\'fld_'.$seed.$field['id'].'_img\'});
For the front end
joomla\modules\mod_listmanager\tmpl\content.php
And for the backend
joomla\administrator\components\com_listmanager\views\listing\tmpl\editdata.php
But as you're changing the default format, this change is incompatible with the change to configure order.
Hope this helps, best regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es
with version 0.0.3 of List Manager you have limited options, we can point you some tweaks to make the changes, but we're afraid you can't apply of all them at the same time, here the options:
- to configure a default order: you can use the 'order' parameter to order the front-view by default. Place there the name of the column you want the order to be applied to. This order is ascending, so if you want a descending view, you also have to modify the front-end view:
Edit
joomla\modules\mod_listmanager\tmpl\content.php
and search for this section
if(colorder!=-1)
orderForColumn[?php echo $seed;?](idorder,colorder);
(replace brackets for the proper less than and greater than symbols, you just have to duplicate the line and and the {} signs to get this:)
if(colorder!=-1){
orderForColumn[?php echo $seed;?](idorder,colorder);
orderForColumn[?php echo $seed;?](idorder,colorder);
}
This way you will have ascending order.
- Date format:
Date format is defined when creating calendar objects, so you should search for this block:
Calendar.setup({inputField:\'fld_'.$seed.$field['id'].'\',ifFormat:\'%Y-%m-%d\',button:\'fld_'.$seed.$field['id'].'_img\'});
and modify the ifFormat parameter (for your case, the line would be as follows:)
Calendar.setup({inputField:\'fld_'.$seed.$field['id'].'\',ifFormat:\'%d-%m-%Y\',button:\'fld_'.$seed.$field['id'].'_img\'});
For the front end
joomla\modules\mod_listmanager\tmpl\content.php
And for the backend
joomla\administrator\components\com_listmanager\views\listing\tmpl\editdata.php
But as you're changing the default format, this change is incompatible with the change to configure order.
Hope this helps, best regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es
Re: Date setup 12.02.2013 18:11
Hello,
in order to have the descending order, just follow this steps:
- Go to your component/module configuration and write the name of your date column at the parameter 'Order'.
- Edit
joomla\modules\mod_listmanager\tmpl\content.php
search for this section (about line 415)
if(colorder!=-1)
orderForColumn.....etc......;
just copy and paste the orderForColum line, we want to duplicate it. And add open and close keys symbols { } surrounding the two lines, this is the result:
if(colorder!=-1){
orderForColumn.....;
orderForColumn.....;
}
This should do the work.
Regards
Edited by MSTeam - 12.02.2013 18:16
Moonsoft Team
www.moonsoft.es
in order to have the descending order, just follow this steps:
- Go to your component/module configuration and write the name of your date column at the parameter 'Order'.
- Edit
joomla\modules\mod_listmanager\tmpl\content.php
search for this section (about line 415)
if(colorder!=-1)
orderForColumn.....etc......;
just copy and paste the orderForColum line, we want to duplicate it. And add open and close keys symbols { } surrounding the two lines, this is the result:
if(colorder!=-1){
orderForColumn.....;
orderForColumn.....;
}
This should do the work.
Regards
Edited by MSTeam - 12.02.2013 18:16
Moonsoft Team
www.moonsoft.es
Re: Date setup 12.02.2013 20:05
Now I have understood,
I applied your tweak but it works with the module loaded in the content:
http://www.comune.baiano.av.it/index.php/component/k2/item/104-prova-ammi.html
not with the main component:
http://www.comune.baiano.av.it/index.php/amministrazione-aperta.html
For me is good as result but the page has not a good aspect.
Im sorry for boring you... I hope to move the website to joomla 2.5 soon, but now I have to do all the best with this version.
Thanks a Lot
Pellegrino
I applied your tweak but it works with the module loaded in the content:
http://www.comune.baiano.av.it/index.php/component/k2/item/104-prova-ammi.html
not with the main component:
http://www.comune.baiano.av.it/index.php/amministrazione-aperta.html
For me is good as result but the page has not a good aspect.
Im sorry for boring you... I hope to move the website to joomla 2.5 soon, but now I have to do all the best with this version.
Thanks a Lot
Pellegrino
Re: Date setup 12.02.2013 20:20
Hello,
right, if you finally upgrade to joomla 2.5, the LM version includes both date format and more advanced ordering functions. In the meantime, we can see at your first example that the 'order' parameter has the right value:
Pubblicazione
so the order is properly applied.
But on the second page we find that parameter comes empty to the page, so no ordering is done. Could you please double-check that you have entered 'Pubblicazione' value at the 'order' parameter of the component?
Thank you, regards
Moonsoft Team
www.moonsoft.es
right, if you finally upgrade to joomla 2.5, the LM version includes both date format and more advanced ordering functions. In the meantime, we can see at your first example that the 'order' parameter has the right value:
Pubblicazione
so the order is properly applied.
But on the second page we find that parameter comes empty to the page, so no ordering is done. Could you please double-check that you have entered 'Pubblicazione' value at the 'order' parameter of the component?
Thank you, regards
Moonsoft Team
www.moonsoft.es
Re: Date setup 13.02.2013 09:08
Hello,
the component parameters are the same than the module ones. You will find them editing your menu item (at your joomla menu, not at the LM backend). It's the same parameter section you used to select which list should be published at that menu entry.
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
the component parameters are the same than the module ones. You will find them editing your menu item (at your joomla menu, not at the LM backend). It's the same parameter section you used to select which list should be published at that menu entry.
Hope this helps, regards
Moonsoft Team
www.moonsoft.es