with a setting
I have created a new site and I sharing a common files folder.
I need help with rending our out the title on the pages. If some one could screen share it would be great. I know it's something simple that I'm missing.
Thanks,
Ellen
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 02 Nov, 2015 06:49 PM
Hi Ellen,
To clarify, are you referring to outputting the title of a page within it's content/markup or a
<title>
tag within the<head>
section of the page's HTML?In general, you can accomplish this with a Format or by placing the
<system-page-title/>
system tag within your Template.If you want to go the Format route, you can accomplish this by:
$currentPage.metadata.title
Please let me know if you have any questions.
Thanks!
2 Posted by ellen.donovan on 02 Nov, 2015 07:10 PM
[cid:5CBBB086-B4EA-43D5-9F8A-731BD7619D1C]
Thanks,
Ellen
Ellen M. Donovan
Salt Lake Community College
Web Developer | Web Designer | Web Services | Workfront Administrator
801-957-4655<file://localhost/tel/801.957.4655>
[email blocked]<mailto:[email blocked]>
3 Posted by ellen.donovan on 02 Nov, 2015 07:14 PM
Hi there,
Can we do a screen share? It is something else.
Thanks,
Ellen
Ellen M. Donovan
Salt Lake Community College
Web Developer | Web Designer | Web Services | Workfront Administrator
801-957-4655<file://localhost/tel/801.957.4655>
[email blocked]<mailto:[email blocked]>
4 Posted by Ryan Griffith on 02 Nov, 2015 07:39 PM
Hi Ellen,
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:
$page
variable is being set correctlyAlso I wanted to mention it would be better to use
$_EscapeTool.xml($page.getChild("display-name").value)
instead of the Serializer Tool since you're only working with a text field and not a WYSIWYG field.If you would like, feel free to attach your Format and I would be happy to help take a closer look.
Please let me know if you have any questions.
Thanks!
5 Posted by ellen.donovan on 02 Nov, 2015 08:57 PM
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.
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.
Thanks,
Ellen
Ellen M. Donovan
Salt Lake Community College
Web Developer | Web Designer | Web Services | Workfront Administrator
801-957-4655<file://localhost/tel/801.957.4655>
[email blocked]<mailto:[email blocked]>
6 Posted by Ryan Griffith on 03 Nov, 2015 12:45 PM
Hi Ellen,
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.
Thanks!
Ryan Griffith closed this discussion on 19 Nov, 2015 03:29 PM.