[opencms-dev] How to have elements created in pages

Yves Glodt yg at mind.lu
Tue Feb 15 10:43:11 CET 2011


Thanks Florian for the info, I will try it out

On 15 February 2011 07:41, Florian Hopf <hopf at synyx.de> wrote:

> Hi,
>
> Yves Glodt schrieb:
> > when I do "New-> Page with free Text" I end up with a page without any
> > element (even "copy body from default body" is selected.)
> > Is there a way to have new pages created with one or more custom
> elements?
> >
>
> I didn't have time to test it again but this is how I think it works:
> Add a folder default_bodies to your module. Create a plain file in it
> that contains the code for your default body. Maybe this is enough but I
> think you also had to set the names of the elements to the property
> template-elements of your template. I haven't used this for a while so
> you just have to try.
>
> I added a new page to the opencms-wiki, would be nice to enhance it when
> you have it working: http://opencms-wiki.org/XMLPage
>
> Regards
> Florian
>
> _______________________________________________
> 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/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110215/39b73b2e/attachment.htm>


More information about the opencms-dev mailing list