Change Page Content from Sidebar Menu
Permalink
I'm fairly new to C5 but loving it more every day. I want to build a page containing downloadable resources (i.e. document and other files). I would like to categorize the resources and have the category selectable from a sidebar menu.
I know how to do this with autonav and individual pages for each category. I was wondering how one would do the same thing on a single page. If someone could point me in the right direction I'd appreciate it. As it is now I have no idea where to start, look, or read ... or if it's even possible.
Thanks all ...
I know how to do this with autonav and individual pages for each category. I was wondering how one would do the same thing on a single page. If someone could point me in the right direction I'd appreciate it. As it is now I have no idea where to start, look, or read ... or if it's even possible.
Thanks all ...
Thanks hutman. That's the kind of thing I was looking for except I was hoping it could be done at a higher level.
I'm not quite up to making my own blocks etc but hope to get there one day. I take it from your comments that this functionality can't be achieved using C5 standard blocks. If so I'll just make separate pages for each category for now and make a future enhancement when I am more knowledgeable.
I'm not quite up to making my own blocks etc but hope to get there one day. I take it from your comments that this functionality can't be achieved using C5 standard blocks. If so I'll just make separate pages for each category for now and make a future enhancement when I am more knowledgeable.
If you don't want to write any code I'm afraid that you're correct, you will need to create different pages for each category.
I don't suppose c5 8's 'express' data objects could help. They let you create the equivalent of a relational database without cutting any code yourself. However, I'm not sure how you'd integrate that capability with other stuff.
https://www.concrete5.org/about/blog/core-roadmap/whats-express-doin...
https://www.concrete5.org/about/blog/core-roadmap/whats-express-doin...
You might try as a starting point something like this free Addon
"List Files from Set"
https://github.com/Mesuva/list_files_from_set...
Perhaps you could create a different set for each category. It still probably involves some coding, but probably a lot less than a new block from scratch. I'd suggest experimenting with it.
By paying a small amount, you could try using this one with a lot of options including attribute integration.http://webli.us/add-ons/file-list...
Sometimes the support from a paid add-on can help.
"List Files from Set"
https://github.com/Mesuva/list_files_from_set...
Perhaps you could create a different set for each category. It still probably involves some coding, but probably a lot less than a new block from scratch. I'd suggest experimenting with it.
By paying a small amount, you could try using this one with a lot of options including attribute integration.http://webli.us/add-ons/file-list...
Sometimes the support from a paid add-on can help.
I would probably approach this by creating a File Attribute (select, single value only). Then in the single page controller get all the values for that Attribute and output them in your sidebar as links to this page along with a value to be passed into the view function. In the view function do a FileList filtered by that attribute and the value passed in from the sidebar link and then pass the files found to the view and output them in the main area.