掲示板

Create Site Template from an existing Site

12年前 に Hendrik Langhammer によって更新されました。

Create Site Template from an existing Site

New Member 投稿: 9 参加年月日: 11/04/27 最新の投稿
Hi there,
is it possible to create a Site Template from an existing Site? I am thinking of creating a deep copy of one of my sites (a Community Site) within the same Liferay instance and replacing content by instructions or samples afterwards.
Regards,
Hendrik
thumbnail
12年前 に Jeffrey Handa によって更新されました。

RE: Create Site Template from an existing Site

Liferay Master 投稿: 541 参加年月日: 08/12/01 最新の投稿
Hi Hendrik,

You can export a lar file for your existing site and then when you create the site template, import the lar file.
8年前 に George Oakley によって更新されました。

RE: Create Site Template from an existing Site

New Member 投稿: 7 参加年月日: 12/10/05 最新の投稿
Jeffrey Paul Handa:
Hi Hendrik,

You can export a lar file for your existing site and then when you create the site template, import the lar file.


It's wrong solution. During import a lar file we will see alert:
"Please import a LAR file of the correct type (A site can only be imported to a site is not valid)."

Tested on 6.2 GA3
8年前 に Linus Sphinx によって更新されました。

RE: Create Site Template from an existing Site

Junior Member 投稿: 99 参加年月日: 10/08/12 最新の投稿
I build a *Iot* of portals, used mysqldump to save off my plain vanilla starter site database schema in SQL, disable the wizard, inject it into the new sites and use an XML file of the data unique to each site with an XSLT stylesheet to generate a portal-ext.properties, root.xml, server.conf, httpd.conf, ajp_proxy.conf etc. as shown at http://configsys.fullsack.com/. I have this operation boiled down to a perl CGI script on the local machine running apache service as root when the virtual images for a portal are cloned. Browse to and get a form on each host of a pair, tell the DBMS hostname of portal, tell the portal hostname of DBMS and select whether it's prod, test or dev, hit submit, wait 10 minutes, done, local web service reconfigured as ajp proxy and running as apache user, sample portal ready for admin to log in and start customising. Might work for you as well.