I'm wondering if it's possible to spit out the contents of a variable
as a string, but with any coldfusion code that the variable might
contained interpretted. That is to say, if I have the contents of a
page in #text# and #text# contains a cfform, I want to be able to spit
out the contents of #text# with the cfform properly rendered.
I'll tell you what my end goal is in hopes that maybe you folks have a
better way of accomplishing this. My site contains an Application.cfm,
an index.cfm, a templates folder, and a content folder. The content
folder contains all the various bits of page content, like /content/
about_us/board.cfm. The template folder contains a few page layouts.
Application.cfm does some basic preprocessing -- making sure things
exist, setting session states, etc, and index sort of glues it
together.
What I would like to do is be able to include in the content file
(e.g., /content/about_us/board.cfm) several other variables that could
effect the layout of the page. Things like the page title, meta
keywords, sidebar content or the template being used. I figure if I
can include the page content itself in a variable, I can cfinclude the
page content in my Application.cfm, set my layout and page title and
meta variables as needed, then spit out the page content and sidebar
HTML and CF code in the appropriate div.
So CF folks, am I on the right path with throwing the page content
into a var and figuring out a way to evaluate it? If not, how would
you accomplish what I'm trying to do here?
thanks!
--
You received this message because you are subscribed to the Google Groups "ColdFusion" group.
To post to this group, send email to coldf...@googlegroups.com.
To unsubscribe from this group, send email to coldfusion+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldfusion?hl=en.