WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Admin Template Guidelines?
psmith:
Just trying to find guidelines for building your own admin template. I don't see anything, have I missed it?
Thanks,
Phil
doc:
Hi,
there are now guidelines for creating backend themes (admin templates).
So copy an existing one and adapt the variables template_folder and template_name in the info.php file of the theme. After reloading the Add-ons via the WB backend you can select the new theme from the backend. Then it is up to you to adapt colors, CSS or ...
Doc
psmith:
Ok, that's the easy part.
Can you explain how the /templates/ subfolder works? In it there are quite a few .htt files. What role do the .htt files play? Do they overwrite the code in each of the admin directory?
For example, does /templates/pages.htt overwrite the code found in /admin/pages/index.php?
doc:
Hi,
the /templates/*.htt files contain the HTML code and placeholder like {PLACEHOLDER}. The placeholder will be replaced with content by PHP code loacted in the WB /admin folder. Most templates files can be linked to their corresponding PHP file (/admin/xxx/yyy.php) via it´s file name.
Example:
The template file templates/pages_modify.htt is invoked from the WB admin file /admin/pages/modify.php.
You will find the include statements in the corresponding PHP files. They should look like similar to:
--- Code: ---$template->set_file('page', 'pages_modify.htt');
--- End code ---
Good luck.
Doc
psmith:
Thank you for the help.. I am having some success now in porting over a backend template, but now stuck at one more point on the pages section. See attached screenshot for reference.
Is there a way to modify the template for the data grid of the page listings? Or do modifications to this have to happen in the /admin/pages/index.php file?
Of course, I don't really want to get into modifying the core files if at all possible!
Thanks
Phil
[gelöscht durch Administrator]
Navigation
[0] Message Index
[#] Next page
Go to full version