Announcement

Collapse
No announcement yet.

Site Update Date on Each Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Site Update Date on Each Page

    I need to have a "Last Updated - 25-October 2006" (or whatever the current date is) on each page. At the moment I'm manually typing in the date in the footer field in the Footer Field in Site Options.

    Does anyone know of a way of automating the process so there is a footer on each page with the update date on it? It doesn’t matter if the update date shows on un-modified pages.

    Richard

    #2
    i would suggest using server side includes.

    modify your .htaccess file in the root of your site to include these lines:

    Code:
    AddType text/x-server-parsed-html .htm
    AddType text/x-server-parsed-html .html
    and then put this text in the act_primary template at the footer, somewhere.

    HTML Code:
    Last updated - <!--#echo var="LAST_MODIFIED" -->

    be aware: only works on a linux server.

    Comment


      #3
      Many thanks indeed for the info.
      The bit I'm struggling with is finding the "act_primary template" (you can tell I'm new to all this!).

      I've searched the Actinic directory with no joy. Can you point me in the right direction?

      Many thanks

      Richard

      Comment


        #4
        The bit I'm struggling with is finding the "act_primary template"
        There is no act_primary in V8! - it will need to go in the outer/inner layer.

        Comment


          #5
          No need for server tweaks in V8. You can embed some PHP in your overall layout to do this
          Code:
          <actinic:block php="true">
          echo 'Last updated ' . date('l dS \of F Y h:i:s A');
          </actinic:block>
          This will mean that each page will be uploaded at every update as the date is part of the page and will probably have changed.

          Note that the server-side directive mentioned earlier would give the date that each page was last uploaded on, perhaps leading to some little changed pages displaying very old dates. I believe you want people to know the date the site was last updated.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Norman - thank you.

            I'm brand new out of the box when it comes to Acrinic and php! Which file should I put this code in?

            Richard

            Comment


              #7
              No file. You enter it using the Design view. Here's how:-

              In the Content View click on the catalog root (the bunch of money icon). Now open the Design tab. Then click within the Page Preview where you want to place the item. Underneath is the Layout Window containing the relevant source code. Paste it in and it should instantly preview above.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Many thanks indeed Norman.

                Comment

                Working...
                X