We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24278
    • 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
      • 2762
      • 1,198 Posts
      Nicola (Banzai) Reply #2, 18 years ago
      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
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 24278
        • 165 Posts
        Quote from: banzai at Apr 27, 2006, 10:39 AM

        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

        Thanks banzai,

        The document already has a document specific variable called "unpub_date" look here http://modxcms.com/document-tvs.html

        Can’t I use the same one.

        -raavi
        • 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.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 24278
            • 165 Posts
            Thanks sottwell,

            Any resource/link where I can find informatiom on formatting Unix timestamp into my required date/time format?

            regards,

            -raavi