Announcement

Collapse
No announcement yet.

How to automatically show when your catalog was last updated:

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

    How to automatically show when your catalog was last updated:

    I run Mole Ends automated order download software (and very good it is too, thankyou Jan), and wanted to show when the catalog had been updated. After a bit of head scratching, I came up with a simple SSI entry on my pages, which returns the date that A000.cat file was updated.

    I set is as a custom variable:

    Last_updated

    and set the variable as follows:

    <!--#config timefmt="%e %B %Y" -->
    <!--#flastmod virtual="/acatalog/A000.cat" -->

    the var is called using:

    CUSTOMVAR:LAST_UPDATED in the template where I want to show the info.

    Whenever an order is downloaded, and Jans software does an upload to show changed stock levels, the A000.cat file is also uploaded as standard. Thus the SSI shows the date of the last timet he catalog was updated!

    The only other thing to do was to set my webspace to allow .html files to run SSI's - note that some sites might only allow .shtml pages to run SSI's

    Well, hope thats of some use!

    Andy
    Andy Warner

    www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
    www.RPGMiniatures.com D&D and Star Wars Miniatures

    Both running the Cart from Search Page hack

    Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

    All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.
Working...
X