[opencms-dev] How do I get the first layout area into default index.html after creating new website?

Ivan Drinks Sr ivan.sr at reality-technology.com
Thu Oct 28 02:43:56 CEST 2021


Hi Jochen,

I have discovered that doing the below does not make all Mercury content available just some of it.  For instance, in the Templates section the "Layout Row" and "Custom Layout Row" are not available. This is the case even if you place the "Layout area" first.   Is there something else that need to be done as well to make all Mercury contents available?



In your newly created site, open the site configuration file "/.content/.config".

In the "Content elements" tab, add the Mercury "Master configuration": /system/modules/alkacon.mercury.template/configuration/mercury.master.xml

This makes all Mercury contents available for your new site and you can start adding layout areas.

Thanks

Ivan

From: Jochen Graf <j.graf at alkacon.com>
Sent: Wednesday, October 20, 2021 10:41 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] How do I get the first layout area into default index.html after creating new website?


Hi Ivan,
Am 20.10.21 um 15:27 schrieb Ivan Drinks Sr:
[cid:image001.gif at 01D7CB6A.C357C4C0]
OpenCMS is an excellent software application, but simple things make it SO HARD to get started with.  One thing that continues to puzzle me about OpenCMS is that when you create a new website using the Launchpad it creates a default index.html.  Great except you cannot do anything with it because it requires you to first move a Layout Area to it.  But you cannot do that because you cannot select a Layout Area and nowhere in the documentation tells you how to get around this problem.  So you delete the website and recreate it using the demo site as a template.  Then you have to delete everything in the demo site you don't need hoping you do not screw something up.  Can anyone on this mailing list provide a simple answer to how the initial Layout Area can be added to the default index.html created when creating a new website using the tools in the Workspace without ssh into the server?  It would be greatly appreciate!!

In your newly created site, open the site configuration file "/.content/.config".

In the "Content elements" tab, add the Mercury "Master configuration": /system/modules/alkacon.mercury.template/configuration/mercury.master.xml

This makes all Mercury contents available for your new site and you can start adding layout areas.

As a side note, why not just create the initial Layout Area in the default index.html when creating a new website?

When creating pages for a new website, it is even more convenient to have the layout areas available in "template models". See [1] for more information. In this way, you do not need to start on the layout area level for each new index.html.

Best

Jochen

[1] https://documentation.opencms.org/opencms-documentation/creating-a-website/creating-template-models/index.html


Thank you so much

Ivan




_______________________________________________

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

https://lists.opencms.org/mailman/listinfo/opencms-dev






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211028/ced855ea/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 70 bytes
Desc: image001.gif
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211028/ced855ea/attachment.gif>


More information about the opencms-dev mailing list