I'd like to create a tpl template file to control how a specific paragraph bundle is displayed inline. Looking at the code in paragraphs.theme.inc it looks like you add theme suggestions for the field name and display mode, but nothing for specific bundles.

Not sure if this is maybe related to #2394519: Paragraphs never calls #theme paragraph_item. I tried creating template_preprocess_paragraphs_item() to set theme suggestions but that function was never called.

Comments

mpotter’s picture

Status: Active » Closed (works as designed)

OK, nevermind. When I looked in the Entity API module I saw that it already does bundles. So for others looking for this, create tpl files in your theme directory of the format:

paragraphs-item--BUNDLE.tpl.php

and it works just fine.

neubreed’s picture

Do you know how to override a specific field in a bundle?