duplicates - Expression engine: list categories of results, preventing category name duplication -


I'm trying to achieve something like this

Category 1 | Category 2 | Category 3 | Category 4 | category 5 | Category 6
Product 1 (in category 1)
Product 2 (in categories 1 and 2)
Product 3 (in categories 1 and 3
Product 4 (in category ) 4)
Product 5 (in category 5)

Actually, this is a result page, products have been assigned as categories in the form of a menu.

This is what I am getting with the above product data

Category 1 | Category 1 | Category 1 | Category 2 | Category 3 | Category 4 | Category 5
Products 1 (in category 1)
Product 2 (in categories 1 and 2)
Product 3 (in categories 1 and 3 - Product 4 (in category 4)
Product 5 (Category 5) >

I am using this expression engine tag (I have used an extension of GW code categories, but it should be done easily with standard expression engine tags )

  exp: gwcode_categories channel = "product" group_id = "1" output_depth = "2" entry_id = "{entry_id}" entry_count I enter the entries category from the duplicate?   

< P> As long as I do not misunderstand what you are trying to do the best way to do this, to place a channel entries in the category list and to pass. You can use dynamic parameters < Pre> {exp: channel: entries channel = "product" dynamic_parameters = "category" dynamic = "no"}

or have them embedded variables ( 1 and 3 and 6, etc.) through through.

  {exp: channel: entries channel = "products" category = "{embed: catid} dynamic =" no "}   

If this is a long There is a product list and you should point to the page so it can be easy to go with something like this.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -