WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Admin Template Guidelines?
  • Print
Pages: [1]   Go Down

Author Topic: Admin Template Guidelines?  (Read 5918 times)

psmith

  • Guest
Admin Template Guidelines?
« 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
Logged

doc

  • Guest
Re: Admin Template Guidelines?
« Reply #1 on: February 27, 2010, 05:49:53 PM »
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
« Last Edit: February 27, 2010, 06:01:29 PM by doc »
Logged

psmith

  • Guest
Re: Admin Template Guidelines?
« Reply #2 on: February 27, 2010, 07:04:01 PM »
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?
Logged

doc

  • Guest
Re: Admin Template Guidelines?
« Reply #3 on: February 27, 2010, 07:10:57 PM »
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: [Select]
$template->set_file('page', 'pages_modify.htt');
Good luck.

Doc
« Last Edit: February 27, 2010, 07:32:07 PM by doc »
Logged

psmith

  • Guest
Re: Admin Template Guidelines?
« Reply #4 on: February 27, 2010, 08:32:26 PM »
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]
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin Template Guidelines?
« Reply #5 on: February 28, 2010, 12:34:19 AM »
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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Admin Template Guidelines?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2