Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Call page heading/title...

    Is it possible to call the heading/title of a certain page.

    For example, I would like to create a link to an about us page. Is it possible to use something like this...

    Code:
    <a href="<?php echo zen_href_link(FILENAME_ABOUT_US, '', 'NONSSL'); ?>"><?php echo ABOUT_US_HEADER_TITLE; ?></a>
    ABOUT_US_HEADER_TITLE would not be defined as such... it would actually be HEADER_TITLE from the about us definitions file.

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Call page heading/title...

    You got it. If your page is titled About Us, then it would be like:

    Code:
    <a href="<?php echo zen_href_link(FILENAME_ABOUT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_ABOUT_US;?></a>
    That is, if it's a core file. If not, then it would be like:

    Code:
    <a href="http://www.yoursite.com/about_us"><?php echo "About Us"; ?></a>
    Last edited by Get Em Fast; 17 Jun 2007 at 02:12 AM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Call page heading/title...

    Thanks for the reply.

    I tried this for the conditions page, but it didn't work.

    I used HEADER_TITLE_CONDITIONS as the link text for a link in the footer of my site.

    Have I done something wrong?

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Call page heading/title...

    Try this, Alex:

    Code:
    <a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo Conditions; ?></a>
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Call page heading/title...

    That code is similar to what I'm using now.

    The only reason I wanted to be able to use the HEADER_TITLE of the respective page was to prevent me from doubling-up on definitions in my language files.

    However, it appears that's the only way to do it.

    Thanks again for the help. I'll probably stick with what I've got. :)

 

 

Similar Threads

  1. v151 Heading title appearing on front page
    By HammurIT in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Mar 2015, 10:57 PM
  2. H1 page heading / title not changing
    By MikeyG in forum General Questions
    Replies: 9
    Last Post: 12 Mar 2012, 06:56 PM
  3. v139h H1 page heading is not showing the correct title or heading
    By AvaAdorn in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Feb 2012, 01:39 AM
  4. Home Page Heading or Title
    By bginn in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Jun 2010, 01:58 AM
  5. call function in heading title
    By sheakspeer in forum Basic Configuration
    Replies: 4
    Last Post: 11 Jul 2006, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg