We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20196
    • 13 Posts
    This is possibly my first post, can’t really remember if I’ve posted before wink

    Alright my question concerns structuring a site, I have a client site that has a large list of products. These products are this far just regular resource documents.

    Each product has a TV(auto-tag) called "product-group" and another TV(auto-tag) "product-category". Every product is parented to a folder called "products".

    Now I want a to structure a menu preferably with wayfinder that has the following structure;

    Product_groups
    product_group1(This label can contain several products)
    product_group2
    Etc.
    product_categories
    product_category1
    product_category2
    Etc.

    It is important to note that even though there are to menus the products should be the same, it is "so to speak" just two different sorting methods.
    The menu is supposed to be accordian-like which is my reasoning for choosing wayfinder, but if other solutions exists I’m happy to know about them.

    That should be all for now, but let me know if you’re missing any info and I’ll supply them ASAP.

    Update;
    I’m using revolution

    Thanks in advance
    //Moonkin
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Evo or Revo?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 20196
        • 13 Posts
        I’ve i’ve updated the initial post, but i’m using revolution. wink
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Doesn’t sound to me like a job for Wayfinder. I suspect multiple calls to getResources and friends would be a better solution.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 20196
            • 13 Posts
            Thanks for the response smiley

            I Have actually been trying to figure out how to do it other ways, but seem to hit walls either way.

            Another method could be to have one TV(auto-tag) to automatically create a folder within e.g. product_uses folder, if it doesn’t exists. (This may be beyond my capabilities with php though)
            A newly created product_use, would have to redirect the user to the created page in order to add some general information of the new product_use.

            This would also help me a great deal, as I could then reuse some of my existing wayfinder code.

            Thanks in advance
            Moonkin
              • 20196
              • 13 Posts
              Maybe I need to clarify smiley

              When my client adds a new "product_use" tag to the product_uses TV(auto-tag) can I have a plugin that creates a container, if it doesn’t exists, with the new product_use?

              Any help would be appreciated smiley