On 30/06/2006, at 4:56 AM, JW wrote:
> Is it possible to add CFML functions or CFOUTPUT tags to the body of a
> page? If so how? I am lost. I would just like to add some code
> manually.
I've added some "tags" with a wiki like syntax that editors can use
to place dynamic content anywhere in the page. I just do a string
replace in the webskin template.
e.g.
<p>Blah blah</p>
[[SubjectGradeDescription]]
<p>More blah</p>
and in the display template:
<cfif FindNoCase("[[SubjectGradeDescription]]", stObj.body)>
<cfset gradeDesc = ... />
<cfset stObj.body = ReplaceNoCase(stObj.body,
"[[SubjectGradeDescription]]", gradeDesc) />
</cfif>
A cleaner way might be to add these to the model (as often you'll
want the same tags across different webskin templates):
<cfset filteredBody = createObject("component",
application.types.myHTML.typePath).filteredBody(stObj=stObj) />
-- tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---