Author Topic: Multiple pages directories  (Read 3119 times)

daydreamer

  • Guest
Multiple pages directories
« on: February 08, 2012, 09:45:30 PM »
Hi,

Not sure if this has ever been mentioned, or is even possible to have multiple pages directories which different names?

Example:

pages
pages-2
foldername
etc...

Thanks
daydreamer

Offline Ruud

  • Posts: 3659
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Multiple pages directories
« Reply #1 on: February 08, 2012, 10:19:37 PM »
No, there is only one "pages" directory.

You could remove it (admin > settings > advanced settings) and start with 2 pages at rootlevel to create those structures.
Removing the root "/pages" is not advised though. It is there for a good reason.

daydreamer

  • Guest
Re: Multiple pages directories
« Reply #2 on: February 08, 2012, 10:50:37 PM »
Thanks for the swift reply

Offline sky writer

  • Posts: 926
Re: Multiple pages directories
« Reply #3 on: February 09, 2012, 12:58:15 AM »
Removing the root "/pages" is not advised though. It is there for a good reason.

I hear this stated all the time.  Can you please expand on why this is not advised.  I removed the /pages directory on every website I manage and have never had any issues.

I never liked the added /pages in my sites URL's.

Offline Ruud

  • Posts: 3659
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Multiple pages directories
« Reply #4 on: February 09, 2012, 09:45:05 AM »
The reason is WB writes accessfiles and phisical subdirectories for all created pages.

If you do not use some directory above the root and you would create a page like admin/framework/include/temp/templates etc that could casue problems.
Especially when a page like that is removed, the complete directory structure would be removed.
Creating a page like "config" in the root would overwrite your config.php and completely disable the website including the admin.

As long as you are sure you will never create those pages you can remove the pages directory. If you create websites for 3rd parties (customers) it presents a very high risk the customers breaks the website without knowing.

a more safe solution is to use something like http://short.allwww.nl although it still has some issues with special modules/pagetypes.

Offline sky writer

  • Posts: 926
Re: Multiple pages directories
« Reply #5 on: February 09, 2012, 10:15:08 PM »
Thanks for the reply.  I understand this as an issue, but not a concern.  If I try to create a 'page' named admin, WB tells me there is already a page with that name (or similar) and refused to allow me to create the page.  So, I don't see how this is a danger... only a potential problem if you did indeed NEED to create pages with names that conflicted with WB folder structure names.