Date not showing in published Composer page

Permalink
I have the date setup as an content attribute on my composer page but it does show on the page when saved.

Is this a bug or do I need to alter something at the backend?

trixiemay
 
adajad replied on at Permalink Reply
adajad
If you have the date set up as an attribute, you will need to tell the page to display the value.

So in the page type used in composer you have to make a call to the attribute and print it out somewhere on the page.

<?php
$date = $c->getAttribute('your_attribute_handle'); //$c is current page
echo '<p>' . $date . '</p>';
?>


EDIT: I just realised you perhaps meant that the attribute didn't show up on composer. The above is to show the attribute when published.

To have the attribute available in Composer you need to edit the Composer Settings and mark the check box next to the attribute you want to display in Composer.

EDIT[again]: Reading your post _again_ makes me believe my first suggestion should work.