How to display items on choosing specific category ?
Hi,
I have a page in my site in which I need to list out product items. Each item has image, link and description.
On left side of the page, I listed out the product categories. Now I need to list out corresponding product items on the right side when I choose one category. How can I achieve this. I attached an image for reference only.
Please don't double post as it can become very confusing for yourself but also for those trying to help you out keeping track of suggestions etc. - If it's been a while since the last answer on a post then try bumping it up or tweeting using the #umbraco hash-tag if someone has time to provide some hints - The original post is in here https://our.umbraco.org/forum/developers/razor/61821-How-to-list-out-contents-based-on-specific-categories- :-)
I explained here what i did so far in my page for listing product items.
Under 'Developer' section, I created a data type called 'category' with 'dropdown list' as property editor.
Under 'Settings' section, I created a document type called 'Marketplace' without properties.Then I create 'MarketPlaceItem' doc. type under ' MarketPlace'. Now
'MarketPlace' acts as its master. MarketPlaceItem has name, image, category type as its properties. I assigned 'Category' data type to 'category type' property.
Under 'Content' section, I create a node called 'MarketPlace'.Under which, I created item1,item2,item3 as child nodes with different categories.
I listed out categories in page. But I stuck up here to list out corresponding nodes when I clicking particular category.
How to display items on choosing specific category ?
Hi,
I have a page in my site in which I need to list out product items. Each item has image, link and description.
On left side of the page, I listed out the product categories. Now I need to list out corresponding product items on the right side when I choose one category. How can I achieve this. I attached an image for reference only.
Hi Thomas,
We need to know a little bit more about how your site is set up before we can really help you.
/Chriztian
Hi Thomas
Please don't double post as it can become very confusing for yourself but also for those trying to help you out keeping track of suggestions etc. - If it's been a while since the last answer on a post then try bumping it up or tweeting using the #umbraco hash-tag if someone has time to provide some hints - The original post is in here https://our.umbraco.org/forum/developers/razor/61821-How-to-list-out-contents-based-on-specific-categories- :-)
Best Regards Jan
Hi Chriztian,
I explained here what i did so far in my page for listing product items.
Under 'Developer' section, I created a data type called 'category' with 'dropdown list' as property editor.
Under 'Settings' section, I created a document type called 'Marketplace' without properties.Then I create 'MarketPlaceItem' doc. type under ' MarketPlace'. Now
'MarketPlace' acts as its master. MarketPlaceItem has name, image, category type as its properties. I assigned 'Category' data type to 'category type' property.
Under 'Content' section, I create a node called 'MarketPlace'.Under which, I created item1,item2,item3 as child nodes with different categories.
I listed out categories in page. But I stuck up here to list out corresponding nodes when I clicking particular category.
Hi Thomas,
So what you should do, is to tack the category onto the URL as a QueryString parameter (e.g. "?category=tools"), and then find them like this:
/Chriztian
Hi Chriztian,
Thanks for the solution.
is working on a reply...