WebsiteBaker Support (2.8.x) > Templates, Menus & Design
How to have templates that you can CHANGE easily!
Amateur:
Ok now, let me tell you my solution to this ownership-problem. I think the "reload, uninstall, reinstall" solution sucks and is far too time-consuming. My way is much better! :)
This assumes you know how to use PHPMyAdmin, because we are going to fool the database a little.
Install WB just like you normally would.
In the templates directory, CREATE YOUR OWN subdirectory (let's call it mytemplate for now) and upload the files of your template. Pay attention now: this way YOU are the owner of the files and you can change them as much as you want!
Of course, in WB's adminpanels, you will not see this template, since it was not installed as you normally would.
This is where we go into PHPMyAdmin.
Select your database, and the table wb_addons
Safest thing to do now, is to alter an existing entry. Let's look for the entry of the type template and name name: blank
Let's EDIT that one! Yeeeeeeeah! :)
Change the field "directory" into mytemplate (remember we choose that name? :) )
Change the field "name" into anything you want.
The rest of the fields can remain the same. Edit the description if you feel like it :)
Well that's all! Now your WB installation "knows" there is a template in the directory mytemplate, and YOU own the files in that directory, so YOU can now easily change, overwrite and delete them from your favourite FTP client.
Isn't that great? Yes it is.
Ok now, from here you're on your own. I think I can't explain this any better than I have, just follow my instructions and it will work. Period. If it doesn't, you're not doing what I tell you. Easy as that :-)
Stefek:
Hey, your solution sounds well.
But what if I choose to use more than on template?
And is it possible to modify the template via the "template edit" tool?
If not this solution might become a delusion very quick.
On the other hand if yes, it would be a great modification for in the most cases only one template is used.
Regards,
Stefek
ruebenwurzel:
Hello,
and the easiest way without the need of any inkompatible database changes is:
Upload the template in templates directory and activate it with reload.
Thats all!
- Can be edited from FTP
- can be edited from WB backend with Template Edit (if permissions are set ok)
- Can be used in WB as all other templates
- is kompatible to upgrades ....
So tell me one reason why i should go your way?
Matthias
Amateur:
--- Quote from: ruebenwurzel on February 26, 2008, 06:30:23 PM ---Hello,
and the easiest way without the need of any inkompatible database changes is:
--- End quote ---
Nonsense. Your database is NOT incompatible after you changed it like I did.
--- Quote ---- Can be edited from FTP
- can be edited from WB backend with Template Edit (if permissions are set ok)
- Can be used in WB as all other templates
- is kompatible to upgrades ....
--- End quote ---
All that counts for my solution too.
--- Quote ---So tell me one reason why i should go your way?
--- End quote ---
Did I say you should? Do whatever you like best. I think my way is the easiest. No need to install, uninstall, upload and re-activate. Just upload, edit the table and you're done.
(Not responding anymore, every time someone comes up with a good solution to a problem, there's always a smartass who knows better. Just trying to be helpful here.)
Amateur:
--- Quote from: Stefek on February 26, 2008, 06:25:50 PM ---Hey, your solution sounds well.
But what if I choose to use more than on template?
--- End quote ---
You can add hundreds of templates this way if you like. The WB setup is aware of the templates just as if you installed them through the admin panel. The only difference is: You're the OWNER. As you should be. Major flaw of WB, in my opinion.
Navigation
[0] Message Index
[#] Next page
Go to full version