[Framework-Team] PLIP #10280 Allow overriding the tag on a per-template basis.</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=framework-team@lists.plone.org&q=from:%22Silvio%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Silvio</span></span></a></span> <span class="date"><a href="/search?l=framework-team@lists.plone.org&q=date:20100827" rel="nofollow">Fri, 27 Aug 2010 04:43:28 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre><a rel="nofollow" href="http://dev.plone.org/plone/ticket/10280">http://dev.plone.org/plone/ticket/10280</a></pre><pre> related ticket: * <a rel="nofollow" href="http://dev.plone.org/plone/ticket/8795">http://dev.plone.org/plone/ticket/8795</a> Motivation: Currently the title tag comes from a viewlet: plone.htmlhead.title, registered for the viewletmanager plone.htmlhead in plone.app.layout.viewlets. If you want to write a .pt with a custom <title> tag you're out of luck: the discrimination for the viewlet registration is on the context and the request, the template used is not involved in the adapter lookup. Plone is correctly being advertised as having strong SEO features, but #1 of the list at <a rel="nofollow" href="http://www.sixfeetup.com/blog/2010/8/20/10-reasons-why-plone-can-improve-your-seo">http://www.sixfeetup.com/blog/2010/8/20/10-reasons-why-plone-can-improve-your-seo</a> can be improved resolving this issue: all views with portal as context currently don't provide a meaningful title (and that is also an accessibility issue). Proposal: the <title> tag should be in a macro on his own. This would allow a template to override it. It should come from a view, not a viewlet. Reason: viewlets are good when you don't know in advance how many snippets you need in some place; views are good when you know you will need one snippet AIU. Title tag belongs to the second category. Risks: people relying on the old behaviour to customize the title will have to change their code, or the resulting html page will have two <title> tags. Silvio _______________________________________________ Framework-Team mailing list Framework-Team@lists.plone.org <a rel="nofollow" href="http://lists.plone.org/mailman/listinfo/framework-team">http://lists.plone.org/mailman/listinfo/framework-team</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg04118.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd2.html#04127">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail2.html#04127">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg04132.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="[Framework-Team] PLIP #10280 Allow overriding the <title> tag on a per-template basis."> <input type="hidden" name="msgid" value="AANLkTinZ=gKMMYfp1bKY5hvr2_R+=RVC5U=FpPcgeORp@mail.gmail.com"> <input type="hidden" name="relpath" value="framework-team@lists.plone.org/msg04127.html"> <input type="submit" value=" Silvio "> </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="framework-team@lists.plone.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search framework-team"> <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="/framework-team@lists.plone.org/">framework-team - all messages</a></li> <li class="icons-about"><a href="/framework-team@lists.plone.org/info.html">framework-team - about the list</a></li> <li class="icons-expand"><a href="/search?l=framework-team@lists.plone.org&q=subject:%22%5C%5BFramework%5C-Team%5C%5D+PLIP+%2310280+Allow+overriding+the+%3Ctitle%3E+tag+on+a%09per%5C-template+basis.%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg04118.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg04132.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </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">AANLkTinZ=gKMMYfp1bKY5hvr2_R+=RVC5U=FpPcgeORp@mail.gmail.com</li> </ul> </div> </body> </html>