eZ Community » Forums » Setup & design » update the published date of a file
expandshrink

update the published date of a file

update the published date of a file

Friday 06 April 2012 10:05:21 am - 6 replies

Hello,

When I update the file of the ez object "file", the "published" date is not updated.

On my website, I display the different files I have throught indexes.

The displayed  date remains the original creation date and as a consequence  the user can not know  when the document was las updated.

Could someone  tell me how to display throught an index the last published date of a file ?

thanks for your help

Fabien 

Friday 06 April 2012 10:19:45 am

Hi Fabien,

You could use the created ezcontentobject version's field : {$object.current.created}

Hope it helps,

Friday 06 April 2012 10:47:23 am

Hi,

what about $object.modified?

Friday 06 April 2012 11:21:07 am

Hi Ousmane,

thanks for your replies.

I am not programming it but I am using the edit panel of my index object.

I can only indicate the name of the attribute I wish to display.

I tried to use the modified field, but nothing is displayed when I use it.

The only field that works is "published"

Friday 06 April 2012 12:27:47 pm

hello Fabien,

your index is not a ezpublish standard template : only the published date is used.

See you.

Alex

 

 

Friday 06 April 2012 1:01:06 pm

Hey Alex !

good to hear from you !

can I force the update of that field using a workflow or something?

Friday 06 April 2012 1:36:18 pm

Hello,

Unfortunately  i think it's a developpemnt to do to let you choose what you want ...

Alex

PS: look at your mail.

expandshrink

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

36 542 Users on board!

Forums menu