How do I a tag filter to the auto-nav block?

Permalink
Is there a way to create an auto-nav block that will filter by a specific attribute value? I have a "Tags" attribute on the pages already, I just don't know how to modify the auto-nav block to filter by this attribute.

Here's my use case:

We have biography pages for each member of our executive team.

We have pages describing journal articles published by our employees. These pages have tags that include the author's name.

On the bio page for an executive, I want to place an auto-nav block and select or enter a value for the "Tags" attribute to display all journal articles tagged with that person's name.

We add journal articles fairly often so I want to eliminate the need to manually add a link on a biography page.

 
jordanlev replied on at Permalink Reply
jordanlev
This sounds more like a job for the Page List block as opposed to the Autonav block. Or rather a custom block that uses PageList API code. If you don't want to write your own code, I think there's a couple of addons in the marketplace that let you add a custom attribute filter to the Page List block...
http://www.concrete5.org/marketplace/addons/page-list-title/...
http://www.concrete5.org/marketplace/addons/related-pages/...
admin replied on at Permalink Reply
Thanks for the recommendations, jordanlev. I was really just hoping I could copy the existing auto-nav or page list block and add a bit of code to enabling filtering by an attribute that I select. Is there any way to do that?

Maybe it's not as easy a thing to as it sounds. It seems like such an obvious feature to include in the basic blocks. Maybe it will make it in there some day.

I looked at that Related Pages add-on (plus another similar one) but they seem to come with their own styling instead of just providing the functionality and letting my theme style the content (maybe I'm wrong on that). In my view, add-ons that provide their own styling make a site look cheap because, as cool as the add-on might look on its own, it doesn't match the existing theme of the site. For a corporate web site, that's a non-starter.

As for the Page List Title add-on, it's close but I really don't want yet another attribute to manage, especially one called "Editor's Choice" which has no meaning to what I'm looking to do with it.
jordanlev replied on at Permalink Reply
jordanlev
I understand your concerns, and it makes total sense to me. I believe that adding an arbitrary attribute field to the page list block would be great, but would be a lot of work. The attribute stuff is really complex (because it is so flexible). It would be nice if that existed one day, but I wouldn't hold my breath for it -- unless you want to implement it yourself :)