givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
241 stars 49 forks source link

Cross-Domain Content Issues in a Multi-Site Setup #61

Open bigaboxau opened 6 months ago

bigaboxau commented 6 months ago

I have created two sites: site1.domain.com and site2.domain.com, both mapped to the same codebase. Some features work when I switch between sites from the admin top area.

Subsequently, I created a dummy page on site1 (site1.domain.com/dummy) and another on site2 (site2.domain.com/dummy). I set each of them as the default home page for their respective sites. However, when I navigate to site1.domain.com, edit the dummy page, save the content, and then attempt to view the pages on the frontend for site2.domain.com/dummy, I see the content for site1.domain.com/dummy.

Nevertheless, I can comfortably switch between sites in the admin area and edit the content of individual pages. It's important to note that the frontend header bar (i.e., email, phone, etc., set in site settings) updates correctly when I visit the respective site on the frontend. The issue is specific to the content of the page, consistently pulling from site1.

How can I make it work with a multiple domains setup?

givanz commented 6 months ago

The page was created from page builder with "New template" button?

Templates can be shared between pages or sites.

If you want a unique template for a page/product or site you can use the save as new template option.

Then you can select the new template from page or site settings.

template-save-as.webm

In the last update a bug was fixed in save template path https://github.com/givanz/Vvveb/commit/8e4bd2a435113706a14fc2c30db22b615ee5836f