How to filter content of pages on drop down selection
hi ,
I am using umbraco 7, I have page that contain Images and video. I want to add drop down top of the page and filter images and video of page on the basis of drop down selection as show in Image.
please help me how can i do this.
Hi Elitenet,
Thank you very much for reply , I tried referred solution but fulfill my requirement . I want to achieved this functionality using back office or CMS. can you please provide details step by step process.
here is back office view of resource page hierarchy i want to filter "Resource Gallery" on the basis of Resource Type sub Heading.please provide solution.
Hi Aman,
Im not sure a pure backend solution exists, since the dropdown on the users view, will have to be javascript.
You have to construct a select box with options, and shift the query in url to any of the options. yoursite.aspx?selected=SEO
Then use the razor like this:
@{if (Request.QueryString["selected"] == "SEO")
{
// do something, show specific items
}
}
How to filter content of pages on drop down selection
hi , I am using umbraco 7, I have page that contain Images and video. I want to add drop down top of the page and filter images and video of page on the basis of drop down selection as show in Image. please help me how can i do this.
Hi Aman,
Theres an answer here that might suit you:
https://our.umbraco.org/forum/templates-partial-views-and-macros/82153-displaying-child-pages-with-filter
Check it out, and call out if its not the right solution.
Hi Elitenet, Thank you very much for reply , I tried referred solution but fulfill my requirement . I want to achieved this functionality using back office or CMS. can you please provide details step by step process. here is back office view of resource page hierarchy i want to filter "Resource Gallery" on the basis of Resource Type sub Heading.please provide solution.
Hi Aman, Im not sure a pure backend solution exists, since the dropdown on the users view, will have to be javascript.
You have to construct a select box with options, and shift the query in url to any of the options.
yoursite.aspx?selected=SEO
Then use the razor like this:is working on a reply...