Hello
I would like to here from some experts if there would be any
problem in using the cfinclude structure in the below mentioned
manner.
<cfset sSection = ListGetAt(URL.Action,1,".") />
<cfset sPage = ListGetAt(URL.Action,2,".") />
<cfset sTest =
funcGetHtmlPage(trim(sSection),trim(sPage))>
<cfif FileExists(expandpath("#sTest#"))>
<cfsavecontent variable="sPageContent" >
<cfinclude template="#sTest#" >
</cfsavecontent>
<cfinclude template="header.cfm" >
<cfoutput>#sPageContent#</cfoutput>
<cfinclude template="footer.cfm" >
<cfelse>
</cfif>
The reason why I have used this method is that there are many
variables in the included main file (derived from "sTest" and then
passed on to sPageContent) which has to be set to the header
section... some of such variables are...
1. Document Title
2. Page title
3. Functional title
4. Breadcrumps
etc...
Hope this makes the sence..
Can I find someone who has tried with this type of aproach...
Can I move one with this... I badly need a expert openion on this
and hope I will find it here.
Any openion will be highly appreciated.
Thanks
Shibu Narayanan