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?
Yes. The are several ways to do this:
Install Mail System and select "Testing" for delivery in admin/config/system/mailsystem
Install Maillog / Mail developer...
Posted9 hours 5 min ago by Alejandro Cremaschi (argiepiano) on:
The short answer is no, you can't theme forms or change their layouts through the UI. There is a ported version of Display Suite, which has a submodule called Display Suite Forms that allows you...
Posted9 hours 22 min ago by Alejandro Cremaschi (argiepiano) on:
Thanks!
I tested PayPal WPS (since I also use it in my Drupal 7 Commerce shop).
With the PayPal server SANDBOX mode (no real payment transaction, just simulated).
And everything...
Peter, I've done an initial port of Commerce PayPal. While I haven't tested it, I think it should work, as the module is not too complex.
https://github.com/backdrop-contrib/...
Posted1 day 19 hours ago by Alejandro Cremaschi (argiepiano) on:
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/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 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.