tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/20305-with-a-settingCascade CMS: Discussion 2015-11-19T15:29:56Ztag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-02T18:49:06Z2015-11-02T18:49:06Zwith a setting<div><p>Hi Ellen,</p>
<p>To clarify, are you referring to outputting the title of a page
within it's content/markup or a <code><title></code> tag
within the <code><head></code> section of the page's
HTML?</p>
<p>In general, you can accomplish this with a Format or by placing
the <code><system-page-title/></code> <a href="http://www.hannonhill.com/kb/Available-System-Tags/">system
tag</a> within your Template.</p>
<p>If you want to go the Format route, you can accomplish this
by:</p>
<ul>
<li>Velocity: simply add
<code>$currentPage.metadata.title</code></li>
<li>XSLT: apply a <a href="http://help.hannonhill.com/kb/frequently-asked-questions/create-a-calling-page-index-block">
calling page index block</a> to the region along with a Format
similar to:
<pre>
<code><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/system-index-block/calling-page/system-page">
<h1><xsl:value-of select="title"/></h1>
</xsl:template>
</xsl:stylesheet></code>
</pre></li>
</ul>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-02T19:10:20Z2015-11-02T19:10:20Zwith a setting<div><p>[cid:5CBBB086-B4EA-43D5-9F8A-731BD7619D1C] Thanks,<br>
Ellen</p>
<p>Ellen M. Donovan<br>
Salt Lake Community College<br>
Web Developer | Web Designer | Web Services | Workfront
Administrator</p>
<p>801-957-4655<a>file://localhost/tel/801.957.4655</a><br>
<a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a><a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a></p></div>ellen.donovantag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-02T19:14:27Z2015-11-02T19:14:27Zwith a setting<div><p>Hi there,</p>
<p>Can we do a screen share? It is something else.</p>
<p>Thanks,<br>
Ellen</p>
<p>Ellen M. Donovan<br>
Salt Lake Community College<br>
Web Developer | Web Designer | Web Services | Workfront
Administrator</p>
<p>801-957-4655<a>file://localhost/tel/801.957.4655</a><br>
<a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a><a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a></p></div>ellen.donovantag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-02T19:39:24Z2015-11-02T19:39:24Zwith a setting<div><p>Hi Ellen,</p>
<p>Generally when you are seeing the literal code output to the
page, Velocity encountered an issue when attempting to execute it.
In this case, I would verify:</p>
<ul>
<li>The <code>$page</code> variable is being set correctly</li>
<li>Your page has content within the Display Name metadata
field</li>
</ul>
<p>Also I wanted to mention it would be better to use
<code>$_EscapeTool.xml($page.getChild("display-name").value)</code>
instead of the Serializer Tool since you're only working with a
text field and not a WYSIWYG field.</p>
<p>If you would like, feel free to attach your Format and I would
be happy to help take a closer look.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-02T20:57:03Z2015-11-02T20:57:03Zwith a setting<div><p>It works on all my sites. It is not working on my new site? So I
think the code is correct. I think it’s a setting.</p>
<p>Anyway to do a screen share? It would make it go much faster and
I can show you where it is working and not working.</p>
<p>Thanks,<br>
Ellen</p>
<p>Ellen M. Donovan<br>
Salt Lake Community College<br>
Web Developer | Web Designer | Web Services | Workfront
Administrator</p>
<p>801-957-4655<a>file://localhost/tel/801.957.4655</a><br>
<a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a><a href="mailto:ellen.donovan@slcc.edu">ellen.donovan@slcc.edu</a></p></div>ellen.donovantag:help-archives.hannonhill.com,2010-02-09:Comment/383556572015-11-03T12:45:21Z2015-11-03T12:45:21Zwith a setting<div><p>Hi Ellen,</p>
<p>Definitely sounds like there is a missing piece. My scheduled is
pretty open today, let me know when would be a good time to set up
a quick screenshare.</p>
<p>Thanks!</p></div>Ryan Griffith