Re: Dynamic In Model-Glue</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=cf-talk@houseoffusion.com&q=from:%22Jon+Clausen%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Jon Clausen</span></span></a></span> <span class="date"><a href="/search?l=cf-talk@houseoffusion.com&q=date:20070315" rel="nofollow">Thu, 15 Mar 2007 09:34:58 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>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.).</pre><pre> 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 <a rel="nofollow" href="http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ">http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ</a> Archive: <a rel="nofollow" href="http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272738">http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272738</a> Subscription: <a rel="nofollow" href="http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm">http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm</a> Unsubscribe: <a rel="nofollow" href="http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4">http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg286667.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#286670">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#286670">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg286673.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: Dynamic <title> In Model-Glue"> <input type="hidden" name="msgid" value="514447D4-D4B6-43A4-80F5-62BE6E657ECC@ezods.com"> <input type="hidden" name="relpath" value="cf-talk@houseoffusion.com/msg286670.html"> <input type="submit" value=" Jon Clausen "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="cf-talk@houseoffusion.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search cf-talk"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/cf-talk@houseoffusion.com/">cf-talk - all messages</a></li> <li class="icons-about"><a href="/cf-talk@houseoffusion.com/info.html">cf-talk - about the list</a></li> <li class="icons-expand"><a href="/search?l=cf-talk@houseoffusion.com&q=subject:%22Re%5C%3A+Dynamic+%3Ctitle%3E+In+Model%5C-Glue%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg286667.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg286673.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/cf-talk@houseoffusion.com/logo.png" alt="cf-talk"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">514447D4-D4B6-43A4-80F5-62BE6E657ECC@ezods.com</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d7bb9bd1cdfd04f',t:'MTc3Mjc0MTAyMg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>