[opencms-dev] Cannot use a template with several page elements fora JSP
Marc Schlegel
my.mailing.lists at gmx.de
Wed Feb 13 17:07:01 CET 2008
I was able to fix the problem. Nacho, you were right, the include for
the textelements was the problem. I wrapped another template element
around those, which is not included by the jsp.
<cms:template element="main"> <-------- new element to wrap
<cms:template ifexists="body">
<div class="element">
<cms:include element="body" editable="true"/>
<------------- this one was the cause (as well in text1, ...)
</div>
</cms:template>
<cms:template ifexists="text1">
<div class="element"><cms:include element="text1"
editable="true"/></div>
</cms:template>
<cms:template ifexists="text2">
<div class="element"><cms:include element="text2"
editable="true"/></div>
</cms:template>
....
</cms:template>
Thanks
Nacho Fernandez schrieb:
> Hi, Marc and list. In my experience, the "vfs target already included"
> error is most of the time due to a simple problem in one of the
> components included in a template or jsp (usually an error that
> doesn't allow for the correct compilation - the syntax error you
> mention). That's why removing includes removes the problem and also
> can help locating it. I usually comment parts until I find the source
> of the problem and then try to execute the single part failing and
> then I get the real compile problem to show up.
>
> I hope this hasn't been too confusing and that it helps. Greetings,
>
> Nacho.
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> 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
More information about the opencms-dev
mailing list