Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    February 10th, 2005
    Posts
    16
    Nav Bar - How to highlight current category?
    Hi all,

    Can you help on how I can do this?

    On product index page, I would like to display all the products under a subcategory and the left nav, I would like to boldface with the current category and subcategory among other categories and subcategories. For example, for product listing page for CategoryA and Cucategory1, I would like the CategoryA and Subcategory1 links to be boldfaced in the left nav section:


    Nav bar: CategoryA - SubcategoryA1:
    <b>CategoryA</b> ProductA-A1-1111
    <b>subcategoryA1</b> ProductA-A1-2222
    subcategoryA2 ProductA-A1-3333
    CategoryB
    subcategoryB1

    Here's the data I have:
    CategoryA subcategoryA1 ProductA-A1-1111
    CategoryA subcategoryA1 ProductA-A1-2222
    CategoryA subcategoryA1 ProductA-A1-3333
    CategoryA subcategoryA2 ProductA-A2-4444
    CategoryA subcategoryA2 ProductA-A2-5555
    CategoryB subcategoryB1 ProductB-B1-6666


    Thanks!!

  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Would the WM-If tag do what you need?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Newbie
    Join Date
    February 10th, 2005
    Posts
    16
    Hi,

    Can you please give an example how [MW IF] can help?

  4. #4
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    I'd like to if I understood the request more clearly -- perhaps you could point me to a page that exemplifies what you're looking for?

    In brief, WM-If lets you specify conditions for generating different sections of HTML -- if the expression supplied to it resolves to TRUE it will be generated. There's also a WM-Else tag so you can have different HTML generated if the condition resolves to FALSE. This is all explained in detail in the WebMerge Help page on the WM-If tag.

    Where I think I see the opportunity to apply it here is in the side panel in which an item is bolded if it meets certain criteria, perhaps the same category or subcategory as the product being displayed.

    Question: What sort of structure does this data follow if it allows products both by category AND subcategory?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Code to create a Nav menu from a category list
    By Sharan in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: July 25th, 2008, 09:29 PM
  2. What is the nav bar called?
    By oranges in forum Midnight Cafe'
    Replies: 9
    Last Post: February 20th, 2007, 12:17 PM
  3. Nav Bar - Recent Posts etc
    By MarkMitford in forum Midnight Cafe'
    Replies: 4
    Last Post: May 27th, 2003, 06:43 PM
  4. Problem: Nav bar only works on home page
    By Ron Bechdolt in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: November 17th, 2002, 09:42 PM
  5. Top nav bar
    By cazzie in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: November 14th, 2001, 01:02 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
  •