Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seperating repositories (content, routes etc.) for different websites (1 database) #131

Closed
koemeet opened this issue Mar 22, 2014 · 1 comment

Comments

@koemeet
Copy link

koemeet commented Mar 22, 2014

Hi there!

I am currently using PHPCR in conjuction with Doctrine in order to create a CMS. But I'm not sure what the best approach is (if it is even possible) when you have to deal with multiple websites and one database. Maybe you could use the filesystem structure and just create a seperate node for every website or do I need to use workspaces? I'm not sure what my options are, any clarification on this?

Node solution (simply using the path for scoping):

/cms/websites/1
    - routes
    - pages
    - menus

/cms/websites/2
    - routes
    - pages
    - menus

Steffen

@dbu
Copy link
Member

dbu commented Mar 23, 2014

hi steffen
best ask on the symfony-cmf-users mailinglist - there are a couple of people working on this topic. we are currently working on making the routing really capable of supporting such situations, see symfony-cmf/routing-bundle#210 (quite a mess and discussion atm).

i would recommend to avoid the workspace, as you can not share content across workspaces and it does not really scale. however, you will need to be careful to not expose content from one site to the other, if they have different administrators.

@dbu dbu closed this as completed Mar 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants