Forum Moderators: phranque

Message Too Old, No Replies

Last modified script not working correctly in SSI footer

         

weblib

3:22 am on Mar 23, 2004 (gmt 0)



I have placed the Last_modified environment variable in a SSI footer file. Unfortunately, the date only changes when I modify the footer file and the same date is displayed throughout the site. I need the date to change when I modify the main body which are in separate files.

Any suggestions?

Brett_Tabke

10:41 am on Mar 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I don't think you can do what you are asking it to do short of going to a nonparsed header script.

isitreal

8:49 pm on Apr 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need to put the path to the main page:
<!--#config timefmt="%A, %b %e, %Y" -->
<!--#flastmod virtual="/absolute/path/to/your/file.htm" -->

this works fine to get the last modified path for any file from anywhere, but you can't do that from the footer, since the path needs to be different for each page. I don't know if you can use SSI to get that kind of information to the footer.