Adjust the page title?

Brandon Oliver's Avatar

Brandon Oliver

28 Jun, 2012 09:31 PM

The only way I can have a page's title appear in the upper left of any browser is if I use tags in the "HTML Source Editor" of the WYSIWYG editor. If I click on "Metadata" and enter in information for the Display Name and Title, neither of those appear in the upper left of the browser. This is cumbersome and most of my users don't want to do this, they want to click on the Metadata tab and fill in the information there. Is there anything that can be done to solve this?

  1. 2 Posted by Lee Roberson (Northwestern U) on 29 Jun, 2012 01:04 AM

    Lee Roberson (Northwestern U)'s Avatar

    Brandon,

    Using metadata fields in page output is not an automatic feature of Cascade. Take a look at the system tags article on the KB. It talks about ways of using metadata fields in your templates:

    http://www.hannonhill.com/kb/Available-System-Tags/index.html

    I think you can place these tags almost anywhere in Cascade (in content, XSL, or templates), but I recommend you put them in templates whenever possible. Wherever the tag is placed, its corresponding metadata field will be printed.

    Generally you want to open the HTML templates for the pages in question in your site, find where the area is, look for a element somewhere in there, and if there isn't one, type one in.

    So somewhere inside the head tag you want to see to have Cascade insert the metadata title field for each page into the browser title.

    Does that make sense?

  2. Support Staff 3 Posted by Ryan Griffith on 29 Jun, 2012 12:54 PM

    Ryan Griffith's Avatar

    Hi Brandon,

    As Lee indicated, you would want to add a <title/> tag inside of your page template(s) and use a system tag to access your metadata information. Something like the snippet below:

    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="utf-8"/>
    
            <title><system-page-title/></title>
    
            <!-- Use the built in META tags for description and keywords-->
            <system-page-meta-description/>
            <system-page-meta-keywords/>
        
            <link href="/lib/css/site.css" rel="stylesheet"/>
        </head>
        <body>
        ...
        </body>
    </html>
    
  3. 4 Posted by Brandon Oliver on 29 Jun, 2012 04:32 PM

    Brandon Oliver's Avatar

    Thank you! This worked!!

  4. Support Staff 5 Posted by Ryan Griffith on 29 Jun, 2012 05:33 PM

    Ryan Griffith's Avatar

    Great, I'm glad to see you got it working. Feel free to reply or comment to re-open this discussion if you have any additional questions.

    Have a good one!

  5. Ryan Griffith closed this discussion on 29 Jun, 2012 05:33 PM.

Comments are currently closed for this discussion. You can start a new one.