[opencms-dev] Adding elements: How? and a small problem

Yves Glodt yg at mind.lu
Mon May 18 22:38:54 CEST 2009


On Monday 18 May 2009, Yves Glodt wrote:
> Hello,
>
> I would like to add 2 elements to a "page with free text", and then
> use the following code:
>
> <c:set var="page"
> value="${cms:vfs(pageContext).readXml[cms:vfs(pageContext).context.ur
>i]}" /> ...
> <c:if test="${page.hasValue['left']}">
> custom divs for that element here
> </c:if>
>
> But how can I add elements (or at least make them available) to the
> page? Preferably I would like to add them to all the pages in once,
> but I could not find out how...?
>
>
> I added the <element name='...'> directly to the controlcode and now
> it seems I can not use the wysiwyg-editor anymore... It opens the
> page but the content is not accessible, like grayed-out. Any idea
> what I broke.. and how?

This was broken because I set a "template"-property to my template (the 
stylesheet actually which it did not seem to like)

> best regards,
> Yves


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090518/5e1d7a84/attachment.htm>


More information about the opencms-dev mailing list