iamkillyou
Programmer
I think I need to redesign my entire site, but before I do that I'm asking here.
Every page on my site has a header/footer template which are called like this:
Anyway my point is that a_events.cfm is what's going to do the queries and will eventually get the info like dates and locations that I'd like to put into the title, BUT the html title is set in the top.cfm template.
Javascript works - but that does me no good as I want the titles there for search engines to index.
I've tried adding this into my top.cfm template:
and in my a_events.cfm file:
This however doesn't work as top.cfm is processed before a_events.cfm, so I'm outta ideas... Anyone else?
My website, or a bad habit?
BarSmart
Every page on my site has a header/footer template which are called like this:
Code:
<!--- events.cfm --->
<cfinclude template="top.cfm">
<!---some layout stuff here--->
<cfinclude template="a_events.cfm">
<!---some more layout for the right side--->
<cfinclude template="ads.cfm">
<cfinclude template="bottom.cfm">
Anyway my point is that a_events.cfm is what's going to do the queries and will eventually get the info like dates and locations that I'd like to put into the title, BUT the html title is set in the top.cfm template.
Javascript works - but that does me no good as I want the titles there for search engines to index.
I've tried adding this into my top.cfm template:
Code:
<cfset request.title = "site.com">
<cfparam name="title" default="#request.title#">
<title><cfoutput>#title#</cfoutput></title>
and in my a_events.cfm file:
Code:
<cfset request.title = "this events details">
This however doesn't work as top.cfm is processed before a_events.cfm, so I'm outta ideas... Anyone else?
My website, or a bad habit?
BarSmart