[opencms-dev] how edit a site copied from Demo
Daniel Seidel
d.seidel at alkacon.com
Thu Nov 10 21:40:44 CET 2016
Hi sergiog,
if you move the content things should work. If you copy it, you run into
problems with the ids. The copied container pages still refer to the
original (not the copied) elements. Since these are in the other site,
they are not available.
You could try three solutions:
1) move common things you want to share (I think you only need the
templaterows,) to the shared folder, copy the .formatters folder to your
new site, maybe copy/rebuild the models and the configurations on your
new site and then start adding content.
2) (more a hack) export the content relative to /sites/default/, unzip
it, delete all <uuid>...</uuid>, <structureid>...</structureid>,
<resourceid>...</resourceid> parts in the files, replace
"/sites/default" by your new site root everywhere, zip again and import
relative to your new site. Most things will work, some things wont be
rendered until you choose the formatter again via the element setting
3) there is a "hidden" feature to copy whole (sub)sites, the code is
somewhere in the core, but there is no GUI for it and actually haven't
used it yet.
Best, Daniel.
Am 04.11.2016 um 21:15 schrieb sergiog:
> I'm trying for several and several days to create my website on the same pc
> containing the Demo Site, that goes perfectly (i use Mysql, Tomcat 8.5
> OC10.01).
> The'm trying all but I can not get out.
> Only if i remain inside the /sites/default folder i can edit the pages....
> At the end I also copied the whole site Demo (using the COPY/MOVE option) in
> another folder, I edited the file system.xml
>
> <sites>
> <workplace-server>http://localhost:8080</workplace-server>
> <default-uri>/sites/default/</default-uri>
> <shared-folder>/shared/</shared-folder>
> <site server="http://localhost:8083" uri="/sites/eccolo/"
> title="Mioeccolo" position="8.5070587E37" webserver="true"/>
> <site server="http://localhost:8080" uri="/sites/default/"
> title="Demo Site" position="3.4028235E38" webserver="true"/>
> <site server="http://localhost:8082" uri="/sites/example/"
> title="Mioesempio" position="3.4028235E38" webserver="true"/>
> <site server="http://localhost:8081" uri="/sites/musica/"
> title="Musicale" position="3.4028235E38" webserver="true"/>
> </sites>
>
> and verified that are present all folders and all elements of the Demo Site,
> i have verified also that Permission are similar, but when I go SiteMap and
> I try to open something in "Open page" editor I just get a screen with a
> pink zone where it is written: "Empty container (developer) head c1 area
> area for segment" that i can not edit.
> the same element of Demo Site goes well...
> Where am I doing wrong?
>
>
>
> --
> View this message in context: http://opencms.996256.n3.nabble.com/how-edit-a-site-copied-from-Demo-tp26561.html
> Sent from the OpenCMS mailing list archive at Nabble.com.
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list