Results 1 to 10 of 2267

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    The headings will be output as HTML, so you can code a link into a heading text section.
    PHP Code:
    define ('CAT_BOX_HEADING_23','1|0|||<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2'); 
    All of these links will appear above category 23, and can be styled using .catBoxHeading2 {} and .catBoxHeading2 a {}.
    For internal links, use href="index.php?main_page=whatever&manufacturerId=whatever", or however the URL looks when you are on the desired page.
    Thanks for the reply.
    The code above works but I can't seem to get it where I want it to be. I need these group of links between "Top Phone Brands" and "Popular Series" category groups and need this to have a heading as well. Link to the site is www.playnippon.com

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

    Default Re: Categories Dressing

    That is doable.
    Add another heading "|Manufacturers|1|" in front of the manufacturers list "headings" described above, and put the whole series in front of the existing heading for category 19 (Ah My Goddess).
    PHP Code:
    define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="...' 

  3. #3
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Categories Dressing

    When I add the above code, the Manufacturers heading appears but the "Popular Series" heading disappears because it is being replaced by the links. Below is what we have in the file.

    define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2');
    define ('CAT_BOX_HEADING_309','1|0|||Top Phone Brands|1||');
    define ('CAT_BOX_HEADING_19','1|0|||Popular Series|1||');

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

    Default Re: Categories Dressing

    You need to merge the two defines for category 19.
    PHP Code:
    define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2|Popular Series|1||'); 
    Sorry if that wasn't clear. A constant can only be defined once, and any additional defines will be ignored.

  5. #5
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Categories Dressing

    That did it!!! Thanks so much!!!
    Appreciate the help!!!

  6. #6
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Uhmm...sorry for the trouble.

    Another question, can you only add 1 group of links? Or can I duplicate the above and have another group of links below or above the Manufacturers?

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

    Default Re: Categories Dressing

    There is theoretically no limit to the number of different link "heading" groups you can add to a category in this manner. They just all have to be in the one define statement.

    That is a very nice implementation of the heading function... it's satisfying to see some of the features I built being used to their fullest.

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 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