miohtama / visualtitle

Have different navigation and in-page text title in Plone
3 stars 1 forks source link

question: derive <title> tag from visualtitle #2

Closed teschmitz closed 11 years ago

teschmitz commented 11 years ago

Before I installed your add-on, I had somehow envisaged getting an extra "short title" field. I can see why you have done it the other way round as by adding a "long (visual) title", only h1 needs to be manipulated.

I am sometimes using very long page titles, which, of course, is a nuisance for breadcrumbs and portlet entries.

If I use the visualtitle for the long title and enter a short title in the original Title field, I see two effects: 1) the tag will be derived from the short title 2) the short name (url) will be derived from the short title</p> <h1>2 I can handle when editing the page although it might be a bit of a nuisance.</h1> <p>But is there a way to take the title tag from the visual name?</p> <p>My main concern is impact on page ranking.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/miohtama"><img src="https://avatars.githubusercontent.com/u/49922?v=4" />miohtama</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p>Looks like <code><title></code> is generated by a viewlet so you could override it:</p> <p><a href="https://github.com/plone/plone.app.layout/blob/master/plone/app/layout/viewlets/common.py#L57">https://github.com/plone/plone.app.layout/blob/master/plone/app/layout/viewlets/common.py#L57</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/teschmitz"><img src="https://avatars.githubusercontent.com/u/1548455?v=4" />teschmitz</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p>Thank you for the tip.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>