Announcement

Collapse
No announcement yet.

Accessing Parent Category "variable" in Page Title

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

    Accessing Parent Category "variable" in Page Title

    I have a question about codes for category and parent category.

    We are editing some SEO on our client's Miva Merchant site and need to access the parent category name of the category. We are editing the Category Page Template and I've tried everything but cannot seem to get it.

    Currently the code is:
    HTML Code:
    <title>&mvt:category:name; - &mvt:store:name;</title>
    This is what we are looking for: category1 > category 2 - Company Name (where category 1 is the parent for category 2).

    This is a nested category and the category page in question is 4 categories deep. How do I access the parent category for the current category?

    I found some code which shows nothing at all - I was hopeful but nothing:
    HTML Code:
    &mvte:parent_category:name;
    Thanks.
    Dawna

    #2
    Re: Accessing Parent Category &quot;variable&quot; in Page Title

    The parent category is not available naively currently (it will be accessible in Version 9 coming this fall). Right now if you need to get it you will need a 3rd party module like toolkit

    http://www.mivacentral.com/Merchant2...e=WCW-TOOLKIT5

    The function you want is called childof




    Code:
    <mvt:item name="toolkit" param="childof|parentfound|g.Category_Code" />
    <mvt:if expr="g.parentfound">
    &mvta:childof:code; 
    &mvt:childof:name;
    </mvt:if>
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    Working...
    X