Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application.cfc headers & footer

Status
Not open for further replies.

tlk1

Programmer
Jan 30, 2008
1
US
I am sure this is an easy fix but beyond me at this point.

I have the header and footer set in my application.cfc file the index page needs a genaric set of meta tags but each of the other pages which is just 1 page index1.cfm all query driven how can I have a query on the header that pulls the approprate meta tags on index1.cfm and has the non- query meta tags on the index.cfm page? if you want to look at what I am doing the site is
Thanks
 
You might want to put that logic in the onRequest() method. Something like this should work.
Code:
<cfargument name="targetPage" type="string" required="yes">
<cfif ARGUMENTS.targetPage IS "[insert your server info here]/index.cfm">
    [logic to build the header goes here]
<cfelse>
    [logic to build all other pages goes here]
</cfif>
Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top