<p>I have a site setup using a single article detail page for multiple channels. Each channel has a different category group and I need to output the categories as breadcrumbs</p>

<p>so it would ideally look something like this</p>

<p>category 1 > sub category (if exists) > entry title</p>

<p>Different category fields include:</p>

<ul>
<li><code>businessIntelCategories</code></li>
<li><code>learnCategories</code></li>
<li><code>trainingCategories</code></li>
<li><code>savingsCategories</code></li>
</ul>

<p>Not sure how to proceed.</p>

CC BY-SA 3.0
2017-04-11T20:00:30.057Z
Does each section include a category field, which the entry author uses to associate categories with an entry?
Stephen Lewis
CC BY-SA 3.0
2017-04-11T20:03:56.623Z
Yes it does and each section has a different category field
CreateSean
CC BY-SA 3.0
2017-04-11T20:05:28.420Z
Is there a reason you can't just output the selected categories via category field?
Stephen Lewis
CC BY-SA 3.0
2017-04-11T20:58:26.397Z
Each channel using the template has a different category field and there are several channels.. I guess I can set up a conditional based on the channel name.
CreateSean
CC BY-SA 3.0
2017-04-11T22:11:22.280Z
Unless you're following a naming convention which allows you to divine the field name based on the section or URL, a map or conditional is the way to go.
Stephen Lewis
<categories>
Categories as Breadcrumbs
# Categories as Breadcrumbs

(Asked by: username_0 on 2017-04-11)

I have a site setup using a single article detail page for multiple channels. Each channel has a different category group and I need to output the categories as breadcrumbs

so it would ideally look something like this

category 1 > sub category (if exists) > entry title

Different category fields include:

* `businessIntelCategories`
* `learnCategories`
* `trainingCategories`
* `savingsCategories`

Not sure how to proceed.

**Tags:** categories

> **Comments:**
> **username_1**: Does each section include a category field, which the entry author uses to associate categories with an entry?  
> **username_0**: Yes it does and each section has a different category field  
> **username_1**: Is there a reason you can't just output the selected categories via category field?  
> **username_0**: Each channel using the template has a different category field and there are several channels.. I guess I can set up a conditional based on the channel name.  
> **username_1**: Unless you're following a naming convention which allows you to divine the field name based on the section or URL, a map or conditional is the way to go.  

---

## 0 answers

