- Issue created by @numerabilis
- 🇺🇸United States mmarler
Thanks for reporting this @numerabilis.
The last updated date should be add to the
$submitted
variable that is printed in thenode.tpl.php
template:<?php if ($display_submitted) { ?> <div class="submitted"> <?php print $submitted; ?> </div> <?php } ?>
In Drupal 7 you need to enable this setting on each content type. Is it possible your content type doesn't have this enabled?
- 🇧🇷Brazil numerabilis
mmarler When I enabled the module it already get enabled in each content type (shows checked) and I also have to check "Display updated date" in the node "Publish Options" too but after all it didn´t work anything at all.
So I had to make that workaround above to get the date the node was changed by database info.
My node.tpl.php has:<?php if ($display_submitted): ?> <div class="submitted"> <?php print $submitted; ?> </div> <?php endif; ?> <?php if (isset($node->show_updated) && $node->show_updated) :?> <?php if (!empty($updated_value)): ?> <div class="updated-date"> Atualizado em: <?php print $updated_value; ?> às <?php print $updated_time; ?> </div> <?php endif; ?> <?php endif; ?>
But I had to do like this to work. It doesn´t seems to be a mere theme problem.
- 🇺🇸United States mmarler
Thanks for the clarification @numerabilis. This will definitely help those using Drupal 7. Unfortunately, this module no longer supports Drupal 7 so no updates will be made to that branch. I'll keep this issue as active for Drupal 7 users to find.