This plugin allows you to render date inside collection posts and comments by using the syntax
[date:server:F d, Y H\:i\:s:-03.30:.badge] for example.
The plugin renders at Display Time, so the date or time is never cached in the Pre Rendering Cache.
|Last tested in version||6.10.7|
[date:server:F d, Y]
[date:server:F d, Y:-03.30]
[date:server:F d, Y:-03.30:.badge]
[date:issued:F d, Y H\:i\:s:+1\:04]
[date:modified:F d, Y:0\:30]
[date:touched:F d, Y:11.30]
[date:touched:F d, Y]
[date:` Date Source `:` Date Format `:` Date Offset `:.` Class Name(s) `]
- Date Source: can be one of the following:
- server: use the local time of the server. This is the default value if no date source is defined.
- issued: use the date when the post is issued.
- modified: use the date when the post was last modified.
- touched: use the date when the post was last touched.
- Date Format: specifies how the date should be formatted when displayed. Compatible with PHP date formats.
- Date Offset: specifies the amount of time that should be offset.
[date:server:F d, Y:-06.30]will display the current server date with a delay of 6 hours and 30 minutes; i-e: the date will switch 6:30 hours later than without offset.
- Class Names: can be any CSS classname. The classname must start with a dot. Multiple classnames can be specified, separated by a dot.
Per Collection Settings
This panel contains two options: Apply rendering to posts and Apply rendering to comments, wherein you can choose from the drop down menu how you want the Date Tag plugin to render your posts and comments.
The drop down-menu for both options contain the following choices:
- opt-out (default setting for applying rendering to posts)
- never (default setting for applying rendering to comments)
For more information about the rendering options, read about it at the Plugin/Apply Rendering page.