- Creating a CSS Style for the Timestamp Text
- Inserting a New SPAN Tag and ID Attribute to Serve as a Container for the Timestamp
- Applying the Action
- Using the Last Modified (ID) Action to Insert a Page Last Modified Timestamp
- Changing the Language for the Days of the Week
- Wrapping Your Displayed Text with Custom Tags
- About this article
Using the Last Modified (ID) Action to Insert a Page Last Modified Timestamp
Follow all the steps for creating a timestamp, but instead of applying the Clock/Date (ID) action to the head section, apply the Last Modified (ID) action. If you're still following along from the last part of the project, just click the head action and select Last Modified (ID) (it's in the Message category) rather than Clock/Date (ID).
Fill in all the necessary action parameters in the Head Action Inspector.
Save your file and preview it to view the new stamp containing the date the page was last modified. You may need to upload the file to your server to see the correct modification date information.
If you want to include both actions on the same page and utilize a CSS style to control their formatting, you need to create two separate and uniquely named ID styles to apply to each stamp.
Figure 11 Setting up a Last Modified (ID) action to display the page's last modification date.
Figure 12 Previewing the last modified date in a web browser.
Because this action reads the Last Modified property sent by the server hosting the page, you may need to upload the file to a server to generate the correct date on the page. The Last Modified property is a property that the server generates, and it reflects the time and date that the page was last uploaded.
Viewing the page on your local drive works on some platforms and browsers, but for others you need to view it remotely from a server to ensure that the correct modification date appears.