Rob,
Cutter's method is pretty inclusive. For a different take on the
subject, I have a CS Bean called "ScriptFactory" which manages the
content of the head section of the document (js, css, meta, etc.).
The default values are already pre-set so that if I don't include the
arguments in my event handler XML, the head section (when needed) is
populated with the defaults. I call it like this:
<event-handler name="main">
<broadcasts>
<message name="doCheckLogin" />
<!-- Here are Commands for the Script Factory -->
<message name="needHeader"/>
<message name="setPageTitle">
<argument name="pageTitle" value="Welcome!"/>
</message>
<message name="addToHeader">
<argument name="items" value="jsmx,jquery"/>
</message>
<!-- End Script Factory -->
</broadcasts>
<results>
<result do="start.allRequests" />
<result do="view.template" />
</results>
<views>
<include name="header" template="dspHeader.cfm" />
<include name="body" template="dspIndex.cfm" />
<inlude name="welcome" template="dspWelcome.cfm" />
<include name="subnav" template="dspSubNav.cfm" />
<include name="footer" template="dspFooter.cfm" />
</views>
</event-handler>
HTH,
Jon
On Mar 15, 2007, at 9:21 AM, Robert Rawlins - Think Blue wrote:
> Hello Guys,
>
>
>
> Has anyone done any work with dynamic titles and meta tags using
> MG? I'm a
> little lost on how best to achieve it, the idea is the content for
> the tags
> will change for every page to make them more relevant to the exact
> content.
>
>
>
> I've using the standard dspTemplate.cfm method at the moment to
> wrap my
> contact in a universal template. I'd love to hear what you guys are
> doing to
> achieve a little more flexibility in this template.
>
>
>
> Rob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272738
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4