Last edited: is now add below the pages, how can i get it above the page under the txt page?
thanks
SOLVED | Last edited:
SOLVED | Last edited:
Last edited by twc on Fri Jan 18, 2013 9:51 am, edited 1 time in total.
Re: Last edited:
Try to put the call in your template on desired position.
Or put it directly on the page just below the headding
In this case the info will be placed below the heading, however.
The wanted posittion cann be tricked by CSS styling.
Code: Select all
<?php echo lastupdate();?>
Or put it directly on the page just below the headding
Code: Select all
{{{PLUGIN:lastupdate();}}}
The wanted posittion cann be tricked by CSS styling.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Last edited:
Hi twc, hi Tata,
I guess twc is asking about the last update of each single page, which can be shown by setting "Show last edit?" to "yes" in the "Page" tab above the editor. This is simply appended to the page content. It has an ID, so basically it's possible to position it with CSS, but that's a bit beyond my CSS capabilities.
Another solution: in plugins/page_params/index.php from line 73: Replace this with:
That's neither elegant nor safe regarding updates, but maybe a viable workaround.
Christoph
I guess twc is asking about the last update of each single page, which can be shown by setting "Show last edit?" to "yes" in the "Page" tab above the editor. This is simply appended to the page content. It has an ID, so basically it's possible to position it with CSS, but that's a bit beyond my CSS capabilities.
Another solution: in plugins/page_params/index.php from line 73:
Code: Select all
if($pd_current['show_last_edit'] == '1' && $pd_current['last_edit'] !== ''){
$c[$pd_s] .= '<div id = "pp_last_update">' . $plugin_tx['page_params']['last_edit']
. ' ' . date($tx['lastupdate']['dateformat'], $pd_current['last_edit']) . '</div>';
}
Code: Select all
if($pd_current['show_last_edit'] == '1' && $pd_current['last_edit'] !== ''){
$c[$pd_s] = '<div id = "pp_last_update">' . $plugin_tx['page_params']['last_edit']
. ' ' . date($tx['lastupdate']['dateformat'], $pd_current['last_edit']) . '</div>' . $c[$pd_s];
}
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Last edited:
thanks
i have cms site privit that shows my music collection, so many txt below
so better display last edit above.........
Maby a good idea for next version 1.6 display last edit above or below option ?
i have cms site privit that shows my music collection, so many txt below
so better display last edit above.........
Maby a good idea for next version 1.6 display last edit above or below option ?
cmb wrote:Hi twc, hi Tata,
I guess twc is asking about the last update of each single page, which can be shown by setting "Show last edit?" to "yes" in the "Page" tab above the editor. This is simply appended to the page content. It has an ID, so basically it's possible to position it with CSS, but that's a bit beyond my CSS capabilities.
Another solution: in plugins/page_params/index.php from line 73:Replace this with:Code: Select all
if($pd_current['show_last_edit'] == '1' && $pd_current['last_edit'] !== ''){ $c[$pd_s] .= '<div id = "pp_last_update">' . $plugin_tx['page_params']['last_edit'] . ' ' . date($tx['lastupdate']['dateformat'], $pd_current['last_edit']) . '</div>'; }
That's neither elegant nor safe regarding updates, but maybe a viable workaround.Code: Select all
if($pd_current['show_last_edit'] == '1' && $pd_current['last_edit'] !== ''){ $c[$pd_s] = '<div id = "pp_last_update">' . $plugin_tx['page_params']['last_edit'] . ' ' . date($tx['lastupdate']['dateformat'], $pd_current['last_edit']) . '</div>' . $c[$pd_s]; }
Christoph