a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Date Modified inside an included item?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Date Modified inside an included item?
Page: [1]
 
paperfish

 

Posts: 184
From: None
Status: offline

 
Date Modified inside an included item? - 2/28/2001 20:58:00   
We have to show the Date Last Modified on a our Standard Operating Procedures. I'd like to be able to do this inside a piece of boilerplate text that can be inserted from an external file.

For example, the echo directive works very well but it must be in the page. When I use an include with the echo directive embedded in the included item, it returns the Date Last Modified of the included item, not the page in which it is included.

Is there a way to have an included item check the Date Last Modified of the page into which it included?

Cheers

Stuey

 

Posts: 203
From: Dudley West Midlands, United Kingdom
Status: offline

 
RE: Date Modified inside an included item? - 2/28/2001 20:25:00   
I'd like to do the date any html file was last modified, can you tell me how you do the above

regards

Stuart Steele

------------------
Stuart Steele
StuWeb Productions 07808254916
http://www.stuweb.co.uk


(in reply to paperfish)
paperfish

 

Posts: 184
From: None
Status: offline

 
RE: Date Modified inside an included item? - 3/3/2001 20:19:00   
Hi Stuart,

I'm new to this so the following may not be the most elegant approach but it works.

To do this you have to Server Side Includes (SSI) enabled on your web server. Then you have to give your pages a new extension (typically .SHTM) so the server knows it has to parse your page.

The following is a single cell table in which the text and date is right justified but you can dispense with the table.

The first line tells the server how to display the date - in this case Month ##, 2001.

<!--#config timefmt="%B %d,%Y"-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="right">
<p class="DateRev">
Date Last Revised: <!--#echo var="LAST_MODIFIED"-->
</p>
</td>
</tr>
</table>

Good luck


(in reply to paperfish)
Guest


 
RE: Date Modified inside an included item? - 3/3/2001 20:55:00   
I have done this in FP2000 using the Date/Time element inside an include page that is used on every page, for example, in a footer.

Edie


(in reply to paperfish)
paperfish

 

Posts: 184
From: None
Status: offline

 
RE: Date Modified inside an included item? - 3/23/2001 20:50:00   
Sorry it took me so long to get back here. Yes, the Include in FP works, but only in the current web. So if you have a series of subwebs, the included elements have to replicated in each subweb - not difficult, but just one more thing for administrators to keep in mind.

Back to my original question:
Is there a way to have an included item check the Date Last Modified of the page into which it included?

Cheers


(in reply to paperfish)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Date Modified inside an included item?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts