Results 1 to 10 of 70

Hybrid View

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

    Default Re: Parent Categories Separated In 3 sideboxes

    You could use a variant of this code to display ez-page links at desired points in the list.

    Create a dummy category for each block of links you want, and give it a sort order to put it in the proper place in the list. Then use the elseif snippets to display the links:
    PHP Code:
         if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
            
    // skip if this is for the document box (==3)

          
    } elseif ($box_categories_array[$i]['path'] == 'cPath=23') {
          
    $content .= '<a class="ezpLink" href="' zen_ez_pages_link(6) . '" target="_blank">EZ-Page Number 6</a><br />' "\n";
          
    $content .= '<a class="ezpLink" href="' zen_ez_pages_link(7) . '" target="_blank">EZ-Page Number 7</a><br />' "\n";
          } elseif (
    $box_categories_array[$i]['path'] == 'cPath=24') {
          
    $content .= '<a class="ezpLink" href="' zen_ez_pages_link(9) . '" target="_blank">EZ-Page Number 9</a><br />' "\n";

          } else {
          
    $content .= '<a class="' $new_style '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">'
    (Scrap the target="_blank" if you don't want the ez-pages to open in a new window.)
    Last edited by gjh42; 4 Nov 2007 at 07:46 PM.

 

 

Similar Threads

  1. Category Filter - Display Parent categories
    By djdavedawson in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2010, 10:08 PM
  2. Subcategories products in Parent Categories
    By fightthefourwalls in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 14 Jun 2010, 07:58 PM
  3. Enable Links for Parent Categories in Categories Sidebox
    By MrsQ in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Sep 2009, 08:25 PM
  4. Parent... Child... Sub.... CATEGORIES
    By eliza-bee in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 May 2009, 03:03 PM
  5. Parent categories in dropdown filter
    By Ben in forum Customization from the Admin
    Replies: 3
    Last Post: 15 Aug 2006, 02:38 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