WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: psmith on February 27, 2010, 05:23:00 PM
-
Just trying to find guidelines for building your own admin template. I don't see anything, have I missed it?
Thanks,
Phil
-
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
-
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?
-
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:
$template->set_file('page', 'pages_modify.htt');
Good luck.
Doc
-
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]
-
Hello,
no, there is no way to style the page tree the way you want, unfortunately.
Not right know.
I hope it will one day, but for now it's not the case.
Regards,
Stefko