Announcement

Collapse
No announcement yet.

Customizing a single category category tree label

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Customizing a single category category tree label

    I have a single category that I would like to display with a color other than the default cattree CSS. I'm probably approaching it all wrong and have tried a couple different attempts

    My first attempt assumed that l.settings:parent:code would work since "parent:name;" is used
    Code:
     <mvt:if expr="l.settings:parent:code EQ 'Hurricane-Assistance'">
    <a class="x-accordion-category-tree__link &mvte:current:parent; u-text-medium" href="&mvte:parent:link:uri;"><span class="u-color-red">&mvt:parent:name;</span></a>
    <mvt:else>
    <a class="x-accordion-category-tree__link &mvte:current:parent; u-text-medium" href="&mvte:parent:link:uri;">&mvt:parent:name;</a>
    </mvt:if>

    I've also tried
    Code:
    l.settings:parent_category:code
    I'm trying to remove styling that was added in the Category Name field as it breaks the breadcrumb link title.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Hi Leslie,

    Do either l.settings:parent:code or l.settings:parent_category:code output the correct data when on the page?
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Do either l.settings:parent:code or l.settings:parent_category:code output the correct data when on the page?
      l.settings:parent:code does not display my customized link nor does l.settings:parent_category:code
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Hi Leslie,

        Do either of them display the correct category code you are expecting when you either "MVT:EVAL" or "&mvt:" them?
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment

        Working...
        X