Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    20
    Plugin Contributions
    0

    Default Ezpages links in header navigation AUTOMATICALLY

    I want to add Ezpages links in my normal header.
    I can do this by manually inserting

    Code:
    <li><a href="<?php echo zen_ez_pages_link(ez-page-num);?>">Help</a></li>
    But how do i do it so that it works automatically. Ie i set Header on in admin and they turn up in the normal navigation, NOT as another nav bar as they do at the moment.

    What code do i have to change in my tpl_header.php file so that as i add new ezpages - they automatically turn up in the default nav bar??

    Thanks for your help

    Rowan

  2. #2
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Ezpages links in header navigation AUTOMATICALLY

    If you look at includes/templates/YOUR_TEMPLATE/common/tpl_header.php you will see this code :

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->

    which can be moved where ever you want it to show up at in the header. Just move the entire block of code to make it show up wherever you want it to show.


    Hope that helps.
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  3. #3
    Join Date
    Sep 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Ezpages links in header navigation AUTOMATICALLY

    Thanks, so simple!!!!
    I was looking for a much harder option.

    This worked a treat....
    Thanks again

  4. #4
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Ezpages links in header navigation AUTOMATICALLY

    Glad it worked for you !
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 22 Aug 2009, 06:07 PM
  2. EZpages Header Links Position
    By Craig Robbo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 May 2009, 08:18 AM
  3. Lay-out of EZpages header links
    By koenvandamme in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Mar 2009, 09:08 AM
  4. Image behind ezpages header links?
    By webgalore in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Sep 2008, 01:35 AM
  5. Moving EZPages Header Links down
    By BekahRuth in forum Basic Configuration
    Replies: 2
    Last Post: 3 Aug 2008, 03:10 AM

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