-
- 165 Posts
Hello members,
I have managed to install and read the documentation on MODx. Just begining with a client project.
How can I do this?
Insert the "unpublish date" of a document in the <head> like this...
<meta http-equiv="expires" content="Thu, 27 Apr 2006 13:00:00 GMT" />
I have created a "chunk" and placed all my <head> content in that chunck, which in turn gets placed on all templaes.
Hope i’m doing it right, with the chunk.
-raavi
-
- 1,198 Posts
Try this:
> go to Resoucers
> Meta Tags and Keyword
> Meta tags
>create an expire meta tags :
- name: everything you want
- tag:expires
- value: [*unpub_date*]
add this tag in you document setting
..should work
That’s where the [*unpub_date*] comes from. However, that’s a Unix timestamp. You’ll need a snippet or TV to format that into a proper date/time for HTML, then use the snippet or TV in that spot.
-
- 165 Posts
Thanks sottwell,
Any resource/link where I can find informatiom on formatting Unix timestamp into my required date/time format?
regards,
-raavi