om1221
(Om1221)
April 18, 2024, 9:29am
1
For create a new site-B quickly, I copied a new site from site-A folder in the ZMI.
The files in folder site-B looks same as the folder of site-A in ZMI.
But it doesn't display any files or folders when I visit the localhost:8080/site-B, only keep the default main page and site settings of site-A.
I want to make site-A as a template plone site, that we can use it create may sites quickly.
zopyx
(Andreas Jung)
April 18, 2024, 10:05am
2
Copying Plone sites through the ZMI is in general an unsupported operation - might work, might not work. In any case, you need to reindex the complete portal_catalog
of the target site.
Also: And the same is needed for the relation catalog AFAIK (from @jensens )
espenmn
(Espen)
April 18, 2024, 12:35pm
3
As mentioned: rebuilding catalog will probably work.
It could be that if you delete (for example) an image on site A, the corresponding image (file) is not avalable on site B, so please check this before you start 'deleting things'
1letter
(Jan)
April 18, 2024, 2:39pm
4
Please use for this case plone.distributions
om1221
(Om1221)
April 19, 2024, 7:25am
5
Thank you, reindex does work.
om1221
(Om1221)
April 19, 2024, 7:29am
7
Yes, you're right, rebuild is work. Site A shouldn't be delete, because links in page wouldn't change, and keep point to Site A.
espenmn
(Espen)
April 19, 2024, 9:03am
8
What I mean is this:
You have an image on site A
This image is used on page 'SiteA/page'
You duplicate the site
The image will then be used on 'SiteB/page'.
You delete the image on site A
The image (blob file) might be missing from site B, in other words: missing from Siteb/page
( I saw this 10 years ago, when I used a similar approach to move a site to a different mount point )
jensens
(Jens W. Klein)
April 19, 2024, 10:45am
9
And the same is needed for the relation catalog AFAIK.
But the whole process is not officially supported.
What works: Export a site as ZEXP and import it into a fresh Zope-server with the same configuration.
espenmn
(Espen)
April 19, 2024, 11:51am
10
Just a note: If you rename the ZEXP and (for some weird reason) import it to the same zope, you will have to rebuild the catalog.
1 Like
om1221
(Om1221)
April 22, 2024, 2:02am
11
jensens:
AFAIK
Yes, because the siteB URL of image is still SiteA /image.png, that's why I had to keep siteA.