Tuesday 11 November 2003 3:21:49 am
At the end of every article of my site I'd like to show some information about when the article was published and by whom. Also, if the article is updated I'd like to show the same information for the last update. I haven't spent to much time on this, and as I'm sure somebody already must have faced and probably solved this situation, I hoping for some solutions here on the forum. This is my pesudocode; of course it doesn't work properly. It needs a section show to hide the "last updated"-part if the article hasn't been updated. {default content_object=$node.object} <p class="byline"> By: {$node.original_creator.name}, {$content_object.published|l10n( datetime )}
<section show=(if altered=true)>
<br />Modified by: {$node.new_creator.name},{$content_object.modified|l10n(datetime)} </section> </p> It's important that changes made by a second editor user doesn't overwrite the original creators name after "Published by", but is placed after "Modified by:".
Yup, any suggestions is much appreciated. Regards, Valentin.
By the way; I posted this related topic earlier this year: http://www.ez.no/developer/ez_publish_3/forum/setup_design/is_the_original_authors_name_overwritten_
|