Access topic list attributes on a child page

Permalink
Hi everybody,

I am quite new to concrete5 and got stuck with a problem, which I even find difficult to describe. I’ll give it a try:

So I am working on a website with a standard sitemap which contains parent pages and children pages, as follows:

- „Navigation Parent 1“
- „ Navigation Child 1“
- „ Navigation Child 2“
- „ Navigation Child 3“
- „ Navigation Child 4“
- „ Navigation Child 5“
- „Navigation Parent 2“
- „Navigation Parent 3“

On the the „Navigation Parent 1“ page I added a Page List and a Topic List for Filtering (similar to Concrete5’s Elemental theme). My Topic Tree contains four categories (attributes) and each has a different color applied to it. The colors show up when hovering over the Page List’s thumbnail images (for example category 1 color = blue; category 2 color = green, etc.). That works fine.

Now here’s where I got stuck: On the children pages of „Navigation Parent 1“ I included the Breadcrumb function (from Autonav Block) and would like to have the background color match the respective category color of that page. So if that page has category 1 applied to it, I would like the background color to be blue, etc.
How can this be done? How can I access the Topic List’s properties on the children pages and output them?

On the Page List custom view.php I was able to access the topic list with
$topics = $page->getAttribute(’topic_colors');
But this doesn’t work on breadcrumb.php

Also, I was reading
here:https://documentation.concrete5.org/developers/topics/working-topics...
here:https://documentation.concrete5.org/developers/working-with-pages/ge...
here:https://documentation.concrete5.org/developers/working-with-blocks... and
here:https://documentation.concrete5.org/developers/working-with-pages/ov...
but couldn’t figure it out.

Any help would be appreciated.

I work with # concrete5 Version:
Core Version - 5.7.5.13
Version Installed - 5.7.5.13
Database Version - 20160615000000

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi MrKe,

To better understand what you are trying to accomplish, please include some screenshots of what you are describing. Ideally, these screenshots would have some annotations.

Also, if you could include more detail on how your attributes are set up and what pages they are applied to.