There may be contrib modules to do that, but a very simple way to do this is to override the field template, and putting that file in your themes/MY_THEME/templates folder.
For example, to override the body field template, you should put your code in a file called field--body.tpl.php and place it in core/theme/basis/templates, or if you are using another theme, in themes/MY_THEME/templates.
You can see an example of the default code that Backdrop uses to theme fields by looking at core/modules/field/templates/field.tpl.php, (also here) but please notice that THAT particular template is not used - it's there as an example to help you override the field templates.
Also, take a look at the different patterns you can use to override fields in specific content types by looking at this help text.
I've installed the Field Wrappers module, and I can see the option to wrap a field in views, but I cannot see any options to wrap a field in my layout?
I’ve worked with Backdrop/Drupal-type setups before, and SEO performance usually comes down to the basics, not the CMS itself. Clean URLs, proper meta tags, internal linking, and page speed are...
This is a really good idea. I nearly always search on GitHub if I'm not sure of the name.
That said, there is still room for improvement in GitHub as many repos have a useless description...
Posted1 day 6 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
I'd suggest module search to get discussed as a possible top priority.
Our module search page on backdropcms.org doesn't do a good job.
Neither does the module search on admin/...
Hi Jochen
You could test https://github.com/backdrop-contrib/commerce_invoice_receipt which doesn't yet have a release, but may meet your needs when combined with other modules to generate...
Posted6 days 5 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Setting up a multisite with multilingual support can definitely get a bit tricky with all those configurations. If you're looking for a way to keep things clean, I've found that using a quick...
Comments
There may be contrib modules to do that, but a very simple way to do this is to override the field template, and putting that file in your
themes/MY_THEME/templatesfolder.For example, to override the body field template, you should put your code in a file called
field--body.tpl.phpand place it incore/theme/basis/templates, or if you are using another theme, inthemes/MY_THEME/templates.You can see an example of the default code that Backdrop uses to theme fields by looking at
core/modules/field/templates/field.tpl.php, (also here) but please notice that THAT particular template is not used - it's there as an example to help you override the field templates.Also, take a look at the different patterns you can use to override fields in specific content types by looking at this help text.
The Field Wrappers module is very easy to extend to add the wrappers you need. There is an example in the wiki and in the API.php file in the module.
I've installed the Field Wrappers module, and I can see the option to wrap a field in views, but I cannot see any options to wrap a field in my layout?
Hi @kgolding. You go to "manage display" for the content type and it is part of the configuration for the field.