WebsiteBaker Support (2.8.x) > Templates, Menus & Design
[Solved] Different Templates for different pages
mr.winkle:
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
aldus:
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
mr.winkle:
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:
aldus:
--- 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:
--- End quote ---
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
mr.winkle:
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
Navigation
[0] Message Index
[#] Next page
Go to full version