Jordan,
Pre-execute block does not sound like the choice for your situation. You
want the CF code block to appear in published files but not to interfere
with your CMS page rendering.
To achieve that, Render Tag is an ideal choice. It goes like this:
<reddot:cms>
<if>
<query valuea="Context:CurrentRenderMode" valueb="Int:2"
operator="==">
<htmltext>
||||||||||||||||||||
</htmltext>
</query>
</if>
</reddot:cms>
|||||||||||||||||||| -- the block of CF code you want to insert in the
published page.
Of course, if your CF code is "intertwined" with the html, you may want to
check Render Tag references to utilize the escape syntax in order to get rid
of newlines or whitespace etc.
Good luck and my regards to Roman, Elsie and Freddie.
Henry Lu
On Wed, Dec 24, 2008 at 2:38 PM, Jordan <[email protected]> wrote:
>
> We have a project that I'd like to embed some ColdFusion code in the
> template in CMS. ColdFusion is running on the production machine that
> we are publishing on, but not on the RedDot CMS machine.
>
> Initially Tiny kept removing the code from the page and never
> published it.
>
> Then, I setup Active Templates and set CFM up and put the code in
> preexecute blocks, but now the pages won't publish because CF isn't
> running on the server.
>
> Any help or insight would be greatly appreciated.
>
> Thank you,
>
> Jordan Salvit
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" 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/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---