# Adding conditional content for Categories with Featured view

**URL:** https://meta.discourse.org/t/adding-conditional-content-for-categories-with-featured-view/118823
**Category:** Development
**Created:** [May 27, 2019, 10:35pm UTC](https://meta.discourse.org/t/adding-conditional-content-for-categories-with-featured-view/118823 "2019-05-27T22:35:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![torsi](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@torsi](https://meta.discourse.org/u/torsi)
#### Post date: [May 27, 2019, 10:35pm UTC](https://meta.discourse.org/t/adding-conditional-content-for-categories-with-featured-view/118823/1 "2019-05-27T22:35:05Z")

</div>

I have categories and subcategories using the Categories with Featured Topics view. I would like to add conditional content to the category `<td>` based on the parent category. If there were something unique I could test for with handlebars this would be easy to do in the template, but as far as I can tell there isn’t.

I can’t seem to do anything useful with scripts in the Custom HTML either, probably because of how ember renders things I guess? So unless I’m overlooking a simple solution (very possible), I assume I’m looking at a plugin of some sort.

My question is, what would be the best way to approach this? Should I try creating something I can test for with the template, like c.uniqueKey? Or should I create a handlebars helper that gives me conditional logic to test based on the value of c.id? Or some other thing?
