How can I apply categorized sorting to a list of hyperlinks?
PermalinkSo for instance I have the category's 1, 2, 3, on one page it will display all pages as a hyperlink marked with 1, another page with 2 etc.
Is this possible without custom php/javascript/jquery?
Could I piggyback the inbuilt search function to have a dual purpose and run as a search at the top of the page and as a sorter somehow? Not a nice way to go about it though, perhaps there is already a plugin I have missed?
Many thanks
Content pages
Page 1 - marked as category "Country A"
Page 2 - marked as category "Country B"
Page 3 - marked as category "Country C"
etc.
Pages to display the links
Root page 1 - a block set to display all pages with "Country A" as a hyperlink
Root page 2 - a block set to display all pages with "Country B" as a hyperlink
Root page 3 - a block set to display all pages with "Country A, B and C" as a hyperlink
and so on.
The main reason is to reduce having to duplicate content across the site and streamline adding new pages and removing old ones where necessary.
Hope this makes a sense!
I have attached a package that I created to help you out with this issue, so you can look through it. It just contains a block. This block operates under the assumption that you have a select attribute with the handle 'country' in your database and that is what is setting the country options for your pages.
The block options let you select whichever countries you want to display, then it gets a page list of all of the pages that have that country selected and displays them in a list.
Let me know if you have any questions about this.
I really appreciate the assistance as it has been racking my brain for the past day or so how I would go about doing this. I will keep you posted on how it goes :)
After installation the Add Block>Country Links page loads blank with no options to select within it. I'm not sure if it's a concrete version issue maybe? I am only running 5.6.1.2 at the moment, could this be related to the issue?
http://www.concrete5.org/marketplace/addons/page-list-plus/...
Or are you looking to have a block that displays only the pages for one specified Category when it loads?