This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Printing the modified and published...
expandshrink

Printing the modified and published dates ini a article list ..

Printing the modified and published dates ini a article list ..

Saturday 03 May 2003 12:33:28 am - 1 reply

I have to print the article modified or published date in a list. I have no clue how I can get this to work.

This prints the intro
{attribute_view_gui attribute=$Child:item.object.data_map.intro}

I am doing something like this:

{let article=fetch(content,list,hash(parent_node_id,215,limit,30,depth,5,sort_by,array(published,false()),class_filter_type,include,class_filter_array,array(2))) }
{section name=Child loop=$article}
{attribute_view_gui attribute=$Child:item.object.data_map.intro} <<<<---- HERE I HAVE TO PRINT THE OBJECTS DATE!
{/section}
{/let}

How can I accomplish this? I have tried alot, but can't get it to work.

Would apriciate any input!

Kindest,
Jørgen Skogstad

Friday 09 May 2003 9:29:50 am

To get the modification and publishing time from an object in a list you can do something like this ( in e.g line_class_xx.tpl ).

Published at:
{$node.object.published|l10n(datetime)}
Last modified:
{$node.object.modified|l10n(datetime)}

If you just want the date you can do:
{$node.object.published|l10n(date)}

--bård

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from