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 »
  • [Solved] Different Templates for different pages
  • Print
Pages: [1]   Go Down

Author Topic: [Solved] Different Templates for different pages  (Read 5396 times)

Offline mr.winkle

  • Posts: 18
[Solved] Different Templates for different pages
« on: October 28, 2009, 04:42:55 PM »
Hello WebsiteBaker community, I've got a problem:
I just created two different templates which both work perfectly. Now I want to use them for different pages in a single WebsiteBaker 2.8 installation - and can't.
I expected to be able to select my template in "page->options" but only the standard templates are listed. First fix was renaming my template into allcss and overwriting the existing one but thats not what I want.
Bug or Feature? Are my templates missing information?

thank you! mr.winkle
« Last Edit: October 28, 2009, 06:05:52 PM by mr.winkle »
Logged

aldus

  • Guest
Re: [Bug?] Different Templates for different pages
« Reply #1 on: October 28, 2009, 04:57:57 PM »
Well ... setting the php-error-reporting level to "E_ALL & E_STRICT" inside the
advanced options will bring more light in this. Any Messages to post here?

The second (classic) questions is, is the wb2.8 installation from here, and/or is
it an upgrade from an 2.7 one.

Another way to get rid of this situation is attach one of the templates to
get a more or less quick view for the way they are ziped ...

Regards
Aldus
Logged

Offline mr.winkle

  • Posts: 18
Re: [Bug?] Different Templates for different pages
« Reply #2 on: October 28, 2009, 05:08:46 PM »
Thank you for helping,
setting the error logging to ALL & STRICT doesn't generate any messages. My Templates just don't appear in pages-> modify page settings. In the WebsiteBaker settings there are no problems, my templates appear in the list and work perfectly, so zip and install is fine (it's not the first time I do that). Even tried to upload via ftp with following "update database settings" in the Add-on area and to zip and install the templates by hand. No difference.

It's a fresh WebsiteBaker (from www.WebsiteBaker.or g) installation on a Mac OS X 10.6.1 Snow Leopard System with MAMP. Never got problems with that. :oops:
« Last Edit: October 28, 2009, 05:20:20 PM by mr.winkle »
Logged

aldus

  • Guest
Re: [Bug?] Different Templates for different pages
« Reply #3 on: October 28, 2009, 05:27:29 PM »
Quote from: mr.winkle on October 28, 2009, 05:08:46 PM
Thank you for helping,
setting the error logging to ALL & STRICT doesn't generate any messages. My Templates just don't appear in pages-> modify page settings. In the WebsiteBaker settings there are no problems, my templates appear in the list and work perfectly, so zip and install is fine (it's not the first time I do that). Even tried to upload via ftp with following "update database settings" in the Add-on area and to zip and install the templates by hand. No difference.

It's a fresh WebsiteBaker (from www.WebsiteBaker.or g) installation on a Mac OS X 10.6.1 Snow Leopard System with MAMP. Never got problems with that. :oops:

MAMP is 1.8.3? Also, you can try to get an actual #1171 from the svn/project here ... as described on the main-page here.
I would realy like to test one of the ziped ones here - also MacOS, but an old Leopard (bruam) ... ;-)

Regards
Aldus

Edit: How did you edit the template files, or within what - TextWrangeler/BBEdit or ZDE ... could be a utf8-spezific one

« Last Edit: October 28, 2009, 05:30:27 PM by aldus »
Logged

Offline mr.winkle

  • Posts: 18
Re: [Bug?] Different Templates for different pages
« Reply #4 on: October 28, 2009, 05:40:10 PM »
Okay - I solved this. Cannot really explain why this happened - but here the solution.
in my info.php I deleted the following entries:

$template_directory        
$template_name            
$template_function        < - this one
$template_version        
$template_platform        
$template_author        
$template_license        
$template_license_terms    <- and this one
$template_description

and it worked. Found this because not every template has those variables.

This is my former info.php. Add this to your template if you want it not to work.

<?php
$template_directory                = 'sportundreha';
$template_name                        = 'Sport und Reha';
$template_function            = 'sportundreha';
$template_version                    = '1.0';
$template_platform                = '2.7';
$template_author                    = 'Thomas Feldmann';
$template_license                    = 'All rights reserved';
$template_license_terms        = '-';
$template_description            = 'Sport und Reha Template';
?>

Any ideas what is wrong? Is $template_function != $template_directory necessary?

regards, mr.winkle
Logged

aldus

  • Guest
Re: [Bug?] Different Templates for different pages
« Reply #5 on: October 28, 2009, 05:50:41 PM »
ooooooh

$template_function depends, belongs only to "theme" for backend-themes or "template" ...
if you place there something else - it can't work - as WB could get no idear //what it is for//.

If $template_function issn't set - the default "template" is used as for backward-compatiblity ...

That's all.

Regards
Aldus
Logged

Offline mr.winkle

  • Posts: 18
Re: [Bug?] Different Templates for different pages
« Reply #6 on: October 28, 2009, 06:05:21 PM »
Uh, my mistake! Just found that in the allcss info.php and thought it was i could add to my templates, too...
Thank you very much for your answers, really fast and helpful!  :-)

... <3 WebsiteBaker...
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • [Solved] Different Templates for different pages
 

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