We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15599
    • 27 Posts
    Hello, I have having some trouble creating the category pages for my website;
    Here is the site structure:
    Home
    Deals
    - Acer Aspire One
    Categories
    - Laptops

    The document "Acer Aspire One" has a template variable for "Laptops". I am trying to make it so the "Tools" document will list everything with a template variable of Laptops.

    I created a new template called "Categories". Here’s the ditto call in categories:
    [!Ditto? &tagData=`tvcategories` &tagMode=`onlyTags` &tags=`Laptops` &display=`15` &orderBy=`createdon DESC` &tpl=`Home-Display` &dateFormat=`<strong>%B %d, %Y</strong> at <strong>%I:%M %p </strong>` &paginate=`1`!]
    


    When I go to www.sitedomain.com/categories/laptops it shows every document that has something assigned to the categories template variable rather than those with "Laptops" assigned to the template variable.
      • 4310
      • 2,310 Posts
      Try adding this to your Ditto snippet call :
      &filter=`categories,Laptops`
        • 15599
        • 27 Posts
        Yes, it worked perfectly, thanks.
          • 4310
          • 2,310 Posts
          Great grin