Is there a simple way in Drupal to display the last modified date for a node as part of the node.tpl.php file?
相关问题
- Drupal 8: How do I customize a form widget to show
- How to balance webserver bandwith usage?
- drupal :: order complete hook and upgrade user per
- Change redirect in Drupal 7 for Password Recovery
- Adding attachment to Jira's api
相关文章
- Render a Drupal node
- How to allow multiple blocks in a module of Drupal
- How can I redirect a Drupal user after they create
- Drupal 6: Getting custom fields into the database
- Drupal 7 retain file upload
- Drupal - Set 'user/%/edit/uprofile' to def
- Drupal Session User id for independent script
- how to construct an https POST request with drupal
If you put this code in the node.tpl.php file it will show the date of the last change to the node:
with whatever HTML you want around it.
No need to edit node.tpl.php file. Use the following in template.php.
you will get the timestamp and i think that can be changed to date.
Here $nid in tpl file represent the current node id, and hook node_load() load the all information related to node id.