Other Feature options on the Page List Block
Permalink
So, I'm not uber-proficient with php, etc, so I need some guidance. I am using a setup where numerous publishers will create pages with various content in each, all pages will be created in the users specific directory (i.e. /staff blogs/user/article/). My goal is to use the "is featured" function of the Page List block to populate these stories in other categories of the site as needed.
What I would like to do is have a "feature to home", "feature to news", "feature to sports", attributes setup, so that I could select from the Page List "show all 'feature to home' pages on the home page".
I know how to make the attributes, but am not really sure the correct way to edit the page list block to make these attributes options.
Hope that makes some sense. Please advise. Thanks in advance!
What I would like to do is have a "feature to home", "feature to news", "feature to sports", attributes setup, so that I could select from the Page List "show all 'feature to home' pages on the home page".
I know how to make the attributes, but am not really sure the correct way to edit the page list block to make these attributes options.
Hope that makes some sense. Please advise. Thanks in advance!
If you're not uber proficient with PHP (and don't want to spend a bunch of time figuring this out), I'd try one of these addons in the marketplace instead:
http://www.concrete5.org/marketplace/addons/related-pages/...
http://www.concrete5.org/marketplace/addons/dojo-page-filter-pro/...
You could modify the page_list block to handle these additional attributes, but it's not going to be super easy. Someone else was trying to do this in the forums last week and ran into a ton of trouble (which they eventually solved, but if you don't have the patience to deal with it you're better off spending a little money for the pre-built solution).
http://www.concrete5.org/marketplace/addons/related-pages/...
http://www.concrete5.org/marketplace/addons/dojo-page-filter-pro/...
You could modify the page_list block to handle these additional attributes, but it's not going to be super easy. Someone else was trying to do this in the forums last week and ran into a ton of trouble (which they eventually solved, but if you don't have the patience to deal with it you're better off spending a little money for the pre-built solution).
Another option:
http://www.concrete5.org/marketplace/addons/page-list-title/...
This free addon gives you one more field in addition to "is_featured". Perhaps comparing the code in this addon to the original PageList block code will show you what needs to change to add even more of those attributes. Or perhaps instead of one checkbox attribute you could change the attribute to a "select" type attribute, populate the select attribute options with your choices ("featured to home", "featured to news", etc.), and filter it that way? Or perhaps you can contact the author of that addon and ask if he'd be willing to customize it for you for a fee?
http://www.concrete5.org/marketplace/addons/page-list-title/...
This free addon gives you one more field in addition to "is_featured". Perhaps comparing the code in this addon to the original PageList block code will show you what needs to change to add even more of those attributes. Or perhaps instead of one checkbox attribute you could change the attribute to a "select" type attribute, populate the select attribute options with your choices ("featured to home", "featured to news", etc.), and filter it that way? Or perhaps you can contact the author of that addon and ask if he'd be willing to customize it for you for a fee?
jordanlev, the Related Pages add on works like a dream. Thanks for suggesting. $20 well spent.
Hope that helps...