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
239 stars 49 forks source link

Editor #83

Open Qr394 opened 4 months ago

Qr394 commented 4 months ago

Hello, i have set the website up and everything is working but i have one problem. Now i have 2 sites and whenever i edit one of them both gets edited the same. Although the admin users and roles are different in these 2 sites.

Qr394 commented 4 months ago
Qr394 commented 4 months ago

Can the problem be from the DNS records, maybe theyre linked with each other? Because in both websites i have one same (A) record with same ip.

website 1: A @ ip

website 2: A @ ip (same as ip in website 1)

givanz commented 4 months ago

Hi

Are both sites using the same theme?

Changes made with page builder in theme templates will show for all sites using the theme.

To avoid this duplicate the theme you are using by copying public/themes/landing/ to something like public/themes/landing-two/ and then edit public/themes/landing-two/theme.php and change

/*
Name: Landing
Slug: landing
*/

to

/*
Name: Landing Two
Slug: landing-two
*/

Now you can select the new theme for your second site.

I will add a duplicate theme button to simplify this process.

Ip can be shared, only the host (subdomain.domain.tld) must be unique for a site.

Qr394 commented 4 months ago

Thank you, but is this process for THE WHOLE website? So if i change anything and any page it will not be applied for both websites?

givanz commented 4 months ago

Using different themes for each site will keep template changes separate.

But other things like menu, posts, pages can still be shared between sites.

If you don't want to share content then you need to create new menus, pages etc for the second site.

If you make changes to a page that is shown on both sites like about us for example then the changes will show on both.

You will need to create a new about us page if you want it to be different on the second site.

Content like posts, pages, menus etc is saved in the database and is not theme bound.

Page layout, design and most things related to appearance comes from theme templates/files.