WebsiteBaker Support (2.8.x) > Bakery Shop
Cannot change name of bakery folder
mikal42:
I would like to change the name of the Bakery Pages Directory from 'bakery' to something like 'shop' of 'sales'. The word 'bakery' in the url seems a little odd if the cart is not for a bakery. My client noticed this and asked me if it could be changed.
In the Bakery general settings, there is a place where you can apparently "name" the directory that the bakery pages originate from, in a similar manner to the main Website Baker settings.
The only way to access these settings as far as I know is to create a bakery page first. When I tried to change it to 'shop' and saved it, it came up as 'Rename unsuccessfull'. I tried putting a folder called 'shop' in the pages directory and it came up 'folder already exists'.
It seems that it needs to be changed BEFORE making a page, which does make sense as once a page is made it will be in the 'bakery' folder, but there seems to be no way of accessing the general settings page in Bakery before doing so.
Does anyone know how to do this, it is the only real down point in what is otherwise an excellent module...
instantflorian:
Hi,
you have to add one article in the newly created bakery page, then you can change the bakery directory name.
BR
-instantflorian.
mikal42:
I have tried this but it always comes up as 'Rename unsuccessfull'.
mjm4842:
Hi mikal42,
According to https://forum.WebsiteBaker.org/index.php/topic,18426.msg130029.html#msg130029,in order to rename the bakery folder/directory, you should simply need to do a search and replace across all bakery files BEFORE you install the module into Website Baker. I have tried one of Snoork's modified versions of Bakery and it seems to work fine. I actually have a site where I now have two independent copies of bakery running at the same time.
Note: Trying to change the "bakery" directory name after the module is installed is MUCH more complicated as you then need to also modify the database tables and their contents.
Here are the recommended steps:
1) Unzip the bakery module locally.
There are three instances of the word Bakery that you will need to search and replace across all of the files and folders. For example:
2) Search for "bakery" and replace it with "shop".
3) Search for "Bakery" and replace it with "Shop".
4) Search for "BAKERY" and replace it with "SHOP".
And finally...
5) Zip up the files back up and install the module.
TIP: Dreamweaver has the ability to perform a search and replace across all files in a folder and subfolder. If you don't have Dreamweaver, you can also give Replace Text (formerly BK Replace Em) a try. It's available from http://www.ecobyte.com/replacetext/ . I have been using BK Replace Em for years. It's not he simples tool to use but I like it's ability to search and replace blocks of lines. Note that it may also have compatibility issues with Windows 7. You can find other alternatives at http://www.snapfiles.com/freeware/productivity/fwwordprocessing.html .
Hope this helps! Let us know if you run into any problems or you would like to amend the above instructions to make it easier for others.
With best regards,
Michael Milette
Argos:
Great info, thanks! Although this is really a silly bug that need to be fixed by the Bakery author, your instructions are the way to go for now.
Note: when doing a search & replace please switch on the "Match Case" switch in DreamWeaver or another editor. Only then the replacing will be done right.
Navigation
[0] Message Index
[#] Next page
Go to full version