Get the date of last modified for specified attribute value

Permalink 1 user found helpful
Hi there.

I need to display the date of last modified for some attribute value.

Is there the way "getTheLastModifiedDateOfValue()" or something like this?

kohki
 
hissy replied on at Permalink Best Answer Reply
hissy
Use getAttributeValueDateAdded method of AttributeValue object.

<?php
$c = Page::getCurrentPage();
$cav = $c->getAttributeValueObject('example_attribute_handle');
echo $cav->getAttributeValueDateAdded();
kohki replied on at Permalink Reply
kohki
Thanks, hissy.
it's worked very well!

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.