How can I apply categorized sorting to a list of hyperlinks?

Permalink
I was wondering if there is a possible way in concrete to apply categories to pages and then have them all featured in a stack which lists them depending on certain criteria.

So 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

BillboBagend
 
hutman replied on at Permalink Reply
hutman
Just to clarify, are you looking to have a block that has user filters to display the pages based on the Categories?
Or are you looking to have a block that displays only the pages for one specified Category when it loads?
BillboBagend replied on at Permalink Reply
BillboBagend
Hi hutman, I'm not too sure what the best approach would be really but the end goal is to be able to have an entire group of pages which have categories attached. Then I would like to have a block which you can set which categories to display the links for so -

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!
hutman replied on at Permalink Reply 1 Attachment
hutman
Hello,

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.
BillboBagend replied on at Permalink Reply
BillboBagend
That's very kind of you, thankyou! I am away from my computer now until Monday but I will be sure to try it out when I'm back.
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 :)
BillboBagend replied on at Permalink Reply
BillboBagend
Hi again Hutman, thanks for taking the time to put this together although I am having some issues with the block.
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?
hutman replied on at Permalink Reply
hutman
Just to double check. Did you add a select page attribute with the handle being country with some values and then add it to a few pages on your site?
BillboBagend replied on at Permalink Reply
BillboBagend
Aha, I was going to add the page name after. So would that be Page Type Custom? This is the only one I have on the page properties for each page. And by value what do you mean? just [country 1], next page [country 2] .etc
hutman replied on at Permalink Reply
hutman
When you create a Select Attribute it will ask you to create some values for that attribute, that needs to be done first. The handle of the attribute should be country.
rdmedia replied on at Permalink Reply
rdmedia
I have recently used this add=on from the marketplace. Very flexible and might just work for you too.

http://www.concrete5.org/marketplace/addons/page-list-plus/...
BillboBagend replied on at Permalink Reply
BillboBagend
Hi rdmedia, it sounds interesting but the live demo is quite weak and doesn't show its functionality very clearly. I don't suppose you could share a link to the page you have used it on so I can see it myself and how it functions?