Hi,
I have a challenge that I can't quite figure out.
I'm building a site that works with tags, for which I've used a cloneable page - called lexicon.php. And I have one (possibly more in future) cloneable page with articles - called articles.php. The tags should serve as one possible form of navigation for all content on the site. I would like to output, under every article, the full list of entries in lexicon.php, but to be able to use css to style the ones that are related to the current article page.
Basically I want to output a full list of all the lexicon.php tags, and have their relation or non-relation in the classname of the link element.
Is it possible to do this with the related_pages / relations feature to check for the relation and have it output a Y/N or 1/0 boolean that would allow for the setting of a classname? As the pages tag (meaning the Couch tag cms:pages) iterates through all the items in lexicon.php?
Any help appreciated.
I have a challenge that I can't quite figure out.
I'm building a site that works with tags, for which I've used a cloneable page - called lexicon.php. And I have one (possibly more in future) cloneable page with articles - called articles.php. The tags should serve as one possible form of navigation for all content on the site. I would like to output, under every article, the full list of entries in lexicon.php, but to be able to use css to style the ones that are related to the current article page.
Basically I want to output a full list of all the lexicon.php tags, and have their relation or non-relation in the classname of the link element.
Is it possible to do this with the related_pages / relations feature to check for the relation and have it output a Y/N or 1/0 boolean that would allow for the setting of a classname? As the pages tag (meaning the Couch tag cms:pages) iterates through all the items in lexicon.php?
Any help appreciated.