Announcement

Collapse
No announcement yet.

Category Canonical URl

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

    Category Canonical URl

    I am looking to build a drop down list of the categories a product is associated with as a quick jump list on our product page. I am stumped on getting a handle on the Category Conical URI MVT format. I need to build a list of URLS for the drop down field and I am unable to figure this out. Any help would be appreciated.

    Code:
    <mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Offset_Product_Assigned(l.settings:product:id,0,'','',0,l.null, g.assigned_categories )" />
    <mvt:foreach iterator="category" array="global:assigned_categories">
     <mvt:if expr="l.settings:category:active">
     &mvt:category:name;<br>
    &mvt:category:link;<br>   <<<??????????
     </mvt:if>              
    </mvt:foreach>

    #2
    You're close, you just haven't loaded the uri yet.

    Code:
    <mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Offset_Product_Assigned(l .settings:product:id,0,'','',0,l.null, l.settings:assigned_categories )" />
    
    <mvt:foreach iterator="category" array="assigned_categories">
      <mvt:if expr="l.settings:category:active">
        <mvt:do file="g.Module_Feature_URI_DB" name="l.success" value="URI_Load_Category_Canonical(l.settings:cate gory:id, l.settings:uri_info)" />
        <a href="&mvt:uri_info:uri;">&mvt:category:name;</a>
        <br />
      </mvt:if>
    </mvt:foreach>
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers

    Comment


      #3
      Scot - thank you so much for your response!!!

      Comment

      Working...
      X