set an items creation date programmatically

More
12 years 7 months ago #24190 by hede
In the template file category_items.php I need to change the creation date of an item via a method like $item->params->setDate.
Code:
<?php foreach ($items as $item) : if ($item->params->get('make_me_first')) $item->params->setDate('2020-01-01'); endforeach; ?>

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.558 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline