correct LastModified macro docs and provide an example for the Date macro to do the task that people want
This commit is contained in:
parent
de1d4f1373
commit
7279930574
2 changed files with 6 additions and 2 deletions
|
|
@ -52,6 +52,8 @@ The current date and time.
|
|||
</p>
|
||||
|
||||
<p>You can also pass in an epoch date into this macro as a secondary parameter. If no date is specified then today's date and time will be used.</p>
|
||||
<p>One common task done with this macro is to display the date that an Asset was last modified. It uses the <b>revisionDate</b> template variable which is available for all Assets.</p>
|
||||
<p>^D("%z",<tmpl_var revisionDate>);</p>
|
||||
<p>This Macro may be nested inside other Macros if the formatted date does not contain commas or quotes.</p>
|
||||
|
||||
|,
|
||||
|
|
|
|||
|
|
@ -21,13 +21,15 @@ our $I18N = {
|
|||
message => q|
|
||||
<p><b>^LastModified;</b><br />
|
||||
<b>^LastModified(<i>"text"</i>,<i>"date format"</i>);</b><br />
|
||||
Displays the date that the current page was last modified based upon the wobjects on the page. By default, the date is displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the date macro, ^D;, for details.
|
||||
Displays the date that the current page was last edited. By default, the date is displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the date macro, ^D;, for details.
|
||||
</p>
|
||||
<p><i>Example:</i> ^LastModified("Updated: ","%c %D, %y");
|
||||
</p>
|
||||
<p>If you would like to get the last modified time of Assets on a page, see the Date macro for an example.
|
||||
</p>
|
||||
<p>This Macro may be nested inside other Macros if the text it returns does not contain commas or quotes.</p>
|
||||
|,
|
||||
lastUpdated => 1168622573,
|
||||
lastUpdated => 1170179085,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue