Dynamic page/sub-page title

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Dynamic page/sub-page title

Post by calguy1000 »

two things I can think of off the top of my head:  Not that I've tried anything though.

a) create another menu manager template that doesn't create links, just creates the and tags, etc.  and
    use that to create your pseudo breadcrumbs thing.

b) create a user defined tag that returns the page title of the parent page, and then use that udt in your template.
    i.e:  {get_parent_title}{title}

  Then, with some smarty magic you could handle this like:

Code: Select all

    {get_parent_title|assign var="parent"}
    {if parent != ""}
       <H1>{$parent}</H1>
       <H3>{title}<H3>
    {else}
        <H1>{title}</H1>
    {/if}
 
I'd start by trying use the get_template_vars plugin at the bottom of your page to see what variables are defined.. You may be lucky and the parent may be defined somewhere.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Layout and Design (CSS & HTML)”