[thesite] page title

Daniel J. Cody djc at starkmedia.com
Fri Dec 29 10:16:08 CST 2000

aardvark wrote:

>> From: "Daniel J. Cody" <djc at starkmedia.com>
> [...] 
>> someone requested that we have the article title in the page title of 
>> the browser. i thought, sure no prob.. just added the article title to a 
>> session variable, and have that print out..
> why a session variable?  can't you just request the title from the 
> db, like you are doing now to display on the page, only do it earlier 
> in the page?  just make it a variable, then you can call it in the 
> <title>, the <h1>, and anywhere else you might want it...
> not that i'm a CF guy or anything, but that would be my approach...

tried, but the way things work, the template that holds the <title> is 
built before any SQL calls are made that could get the article title.

chicken before the egg kinda deal i guess..

hey aard, you ever drop jamie a line about the netscape shit?


More information about the thesite mailing list