larry98765
Registered
Hi All,
I'd consider myself beginner/intermediate with ColdFusion. I use template includes constantly to build pages on-the-fly. But I'm hoping someone can put me in the right direction regarding this question:
I'd like my CF app to ASSUME I want certain things on every page -- i.e. the header, the meta tags, the footer, the nav bar, etc.
In other words, I'd like to be able to make my individual pages only have the necessary HTML tags for the main section, so an ENTIRE template page might look like this:
<title>The title of this page</title>
<div id="content">
<h1>Yadda yadda</h1>
<p>Paragraph 1, etc</p>
<p>Paragraph 2, etc</p>
</div>
and that would be it for the page. Then, I'd like CF to assume I want all the other tags, and despite there being no CF Includes in my templates, I'd like CF to "wrap" the necessary stuff around it. (i.e. the html, head, body, meta, navigation elements, style sheet embeds, etc.)
Does this make sense? Anyone have any ideas for me?
Thanks in advance!
I'd consider myself beginner/intermediate with ColdFusion. I use template includes constantly to build pages on-the-fly. But I'm hoping someone can put me in the right direction regarding this question:
I'd like my CF app to ASSUME I want certain things on every page -- i.e. the header, the meta tags, the footer, the nav bar, etc.
In other words, I'd like to be able to make my individual pages only have the necessary HTML tags for the main section, so an ENTIRE template page might look like this:
<title>The title of this page</title>
<div id="content">
<h1>Yadda yadda</h1>
<p>Paragraph 1, etc</p>
<p>Paragraph 2, etc</p>
</div>
and that would be it for the page. Then, I'd like CF to assume I want all the other tags, and despite there being no CF Includes in my templates, I'd like CF to "wrap" the necessary stuff around it. (i.e. the html, head, body, meta, navigation elements, style sheet embeds, etc.)
Does this make sense? Anyone have any ideas for me?
Thanks in advance!