WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: D72 on October 14, 2012, 02:49:08 PM

Title: Product page of Bakery in subdirectory and url
Post by: D72 on October 14, 2012, 02:49:08 PM
Hi,

I am really wondering if it's possible to have a subdirectory listing in Bakery.
I'm setting up a website/shop which will contain a lot of products.
But i need to organize and handle with care and efficiency, otherwise it wil be a cluttered list when they going to use it.
I am creating a menu structure and so far so good. But i see that Bakery is not creating a sub page for an article/product. It allways uses the Pages-map in the default settings. I really would like to know if there is a change to let Bakery build it's own sub folder for a product.
For instance, this is an example url:
Code: [Select]
www.bikesite.com/bikes/mountainbikes.phpWhen i click on a product on this page, it brings me to:
Code: [Select]
www.bikesite.com/bakery/mountainbike-product-page.phpBut it must be:
Code: [Select]
www.bikesite.com/bikes/mountainbikes/mountainbike-product-page.phpIs this a known request or something? Because i tried to find something similar on the forum, but couldn't find any.
Really want to know if this is possible, as i want to continue to build the sitemap of the website.

Thanks


Title: Re: Product page of Bakery in subdirectory and url
Post by: Ruud on October 14, 2012, 11:16:57 PM
Bakery pages will always be in a special baker directory (the name bakery can be changed to "shop" or something).
The reason is that WB will not know if a new page already exists in another module and therefore could overwrite a product page with some other content page.

If Bakery would not do that you could have 2 pages both called: bikesite.com/bikes/mountainbikes/mountainbike-product-page.php
Title: Re: Product page of Bakery in subdirectory and url
Post by: D72 on October 22, 2012, 12:19:43 PM
I know that's the 'problem'.
But i was kinda hoping that it was possible to have all product pages in the main product page.
In a way it is a bit odd like it's working now.

I am creating a bike website.
In my menu there is a menu item 'Bikes'.
Under that there are several sub pages.
An url could be:
Code: [Select]
www.mybikesite.nl/bikes/mountainbikesBut there is also a menu item
Code: [Select]
www.mybikesite.nl/bikes/accessoriesWhen i choose a product in accessories, the url wil be:
Code: [Select]
www.mybikesite.nl/bikes/accessories-product.phpThe accessory product isn't a bike, but an accessory part of Bikes.
(Bikes is the name i gave for the Bakery pages map) it makes much more sence if the url would be:
Code: [Select]
www.mybikesite.nl/bikes/accessories/accessories-product.phpIt not a world wide problem, but it's strange. The url structure is totally being ignored. People are paying attention to build an efficient sitemap and structure, and than suddenly, by choosing a product, the url is gonna change. Am i the only one who is acting goofy at this point  :-D
For my feelings, it's just not right, but i do understand why this is happening with Bakery and WB working together.
Title: Re: Product page of Bakery in subdirectory and url
Post by: Ruud on October 22, 2012, 03:27:55 PM
Well, look at the news module. It is working exactly the same. All messages are in the /pages/post/ directory, regardless where the news-page is located.

Technically it could be done, resulting in an error if you would create a page that already exists in the news module (or bakery, or topics), but it would make things more complicated to use and explain.
WB is all about simple and straightforward.
Title: Re: Product page of Bakery in subdirectory and url
Post by: D72 on October 22, 2012, 07:52:22 PM
True and i agree. That is the reason why i use Topics in most cases to use as a news module instead of the default News module. With Topics you can set a custom folder which is in most cases Nieuws/News. But i understand the way WB is working and your point.