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?
Thank you argiepiano, it works exactly as you said, the only thing is i dont have the "classify option" under file-types but I wrote it and I was able to access it and its done, now users can...
This is probably because your files are classified as octet-stream, since the mimetype for APK files is unknown to Backdrop. When this happens, Backdrop doesn't assign a file type to the managed file...
Posted10 hours 13 min ago by Alejandro Cremaschi (argiepiano) on:
For the record I cut and pasted the missing blogs. This was so long ago and the experience that I've gained made me realize the difference between content and configuration. It is likely that...
This may not be news, but I had some success with Node Export on D7 and Feeds on Backdrop. (Couldn't get Feeds -> Feeds import to work correctly.) The way I got it working was to set Node...
This module allows an administrator to define additional (billing and
shipping) address fields (i.e. VAT) in Ubercart e-commerce suite.
Backdrop CMS port: https://drive.google.com/file/...
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.