Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2011
    Posts
    48
    Plugin Contributions
    0

    Default $content to alter ezipages link appearance?

    I half found what I need; https://www.zen-cart.com/tutorials/i...hp?article=258.

    From what I gather, you can adjust html/css elements in the tpl_ezipages.php file to alter the appearance of all ezipages listings.

    What I want to do is make it so that just one link in the ezipages bar (i'm using ezipages as a navbar) is red to indicate which section of the store you are in. It doesn't have to involve clever script which varies which link is red, just a static colour change on the one link.

    This is whats normally in the file
    Code:
      $content = "";
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
      $content  .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
      for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { 
        $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ;
      } // end FOR loop
      $content  .= '</ul>' . "\n";
      $content .= '</div>';
    I'm new to php, so excuse my naivity and incorrect terminology.
    Can I create a duplicate phrase which instead of this
    Code:
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    , which appears to name div elements according to what I've added in the ezipages editor, can I specify a div name and apply styles only to it?
    I thought I'd ask first coz I'll only break something otherwise...

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: $content to alter ezipages link appearance?

    Use the Ezpages Improved Menus mod from Free Addons. It allows the current page link to be highlighted.

  3. #3
    Join Date
    Mar 2011
    Posts
    48
    Plugin Contributions
    0

    Default Re: $content to alter ezipages link appearance?

    Cheers for that. I love that about Zencart - if you think of an idea its usually already been made by someone out there! I must remember to donate again soon...

  4. #4
    Join Date
    Mar 2011
    Posts
    48
    Plugin Contributions
    0

    Default Re: $content to alter ezipages link appearance?

    Hey about you mod though... Is there anyway to get the desired link to remain a different colour for all pages within zencart? I use the ezipages bar for external urls and have two seperate carts runnings.
    Also, the module installed successfully on one cart but not on the other. I've re-done it twice now. Any suggestions?

  5. #5
    Join Date
    Mar 2011
    Posts
    48
    Plugin Contributions
    0

    Default Re: $content to alter ezipages link appearance?

    UPDATE: Fixed the above issue by using images as ezipage links, as per the installation instructions (note that ezphead02.gif for example will not work but ezphead2.gif will). However, 2nd zencart still won't display text colour change successfully.
    All that aside, I'm now having issues with image vertical alignment. Seems that the image is displayed higher than the line of text.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: $content to alter ezipages link appearance?

    I need to see the sites to advise on styling/layout issues. Please post in the support thread to keep discussion of the mod in one place.

 

 

Similar Threads

  1. Link to page 2 content
    By provida in forum General Questions
    Replies: 2
    Last Post: 24 Feb 2010, 05:42 PM
  2. problems with changing category link appearance in CSS
    By maxvenum in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Aug 2009, 05:37 PM
  3. Change Appearance of Selected All & New Products Link
    By dmfelder in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Mar 2009, 12:54 AM
  4. how to alter the home link??
    By d1driftbiz in forum General Questions
    Replies: 2
    Last Post: 10 Oct 2007, 05:29 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR