Hi Backdropers!
I just installed my first Bac... and coming from D7, must say... this is awsome! all the borring stuff you had to do on each D7 new installations, its out of the box here, so very cool!
The only thing I'm trying to get is... in D7 you could create page.tpl.php and/or html.tpl.php and you had a lot of control on your HTML output.
I've seen this layout "thing"... but.. is there any way to make it with the page.tpl.php templates? or html.tpl.php
also I remember in D7, you could do node-id-45.tpl.php and you could theme in HTML the whole page of that node (at least the page render).
also fields could be done.
I've been reading the docs, and see that you can do it with templates but, im creating this templates on my selected theme and cant see that any thing is changing, even with clearing cache. can anyone give me some light in this content?
Thanks in advance!
Welcome to Backdrop CMS!
For these questions there are much better experts than me and you will probably get a lot more and better advice and also helpful information on the site:
https://docs.backdropcms.org/documentation/developing-themes
But let me tell you how I do it:
page.tpl.php in Backdrop plays a different role than in Drupal, I do not develop themes through page.tpl.php, but by developing my own layout
https://docs.backdropcms.org/documentation/developing-layouts
Layout is what organizes the HTML structure of the site and creates the regions, which can then be formatted through CSS selectors.
node-id-45.tpl.php, as well as custom block templates work the same way and you can use them, but when you get used to working with layouts and custom blocks, these old tools will be superfluous. You do not need to have a special template for node 45 because you can make a layout that manages the design of node 45 much more efficiently. And to manage the design of the field, all you have to do is install the field_wrappers module, which allows you to define a CSS class for the field, but also many more tokens-based capabilities.
Good luck with Backdrop, you won't regret your decision.