View Single Post
  #2  
Old January 9th, 2011, 09:36 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

  1. Create a new Custom View named "Unordered Category List". Check the 'don't use layout' checkbox.
  2. Add a Category List module to the module area.
  3. Add the following code to the Category List module:
    Code:
    [category.list id='dfparent' before='<ul id="nav">' after='</ul>']
    <li>
      <a href="[category.link]" title="[category.name]">[category.name]</a>
      [category.list id='dfchild' before='<ul>' after='</ul>']
        <li>
          <a href="[category.link]" title="[category.name]">[category.name]</a>
          [category.repeat id='dfchild']
        </li>
      [/category.list]
    </li>
    [/category.list]
  4. Update your store
  5. Place the following code where you need your unordered list of categories to appear:
    PHP Code:
    <?php 
    $cats 
    str_replace(array("<div>","</div>"), array("",""), datafeedr_tag("Unordered Category List"));
    echo 
    $cats
    ?>

Eric