[opencms-dev] <cms:formatter> always needs a xml tag inside?

Michael Emmerich m.emmerich at alkacon.com
Thu Mar 15 09:00:32 CET 2012


Yuta,

inside a <cms:formatter> tag, you need at least one element, in most 
cases this will be a <div>.

Kind Regards,
Michael.



Am 15.03.2012 04:16, schrieb Yuta Aoki:
> Hello,
>
>
> I have noticed a slightly bizarre behaviour of cms:formatter tag.
> I prepared a simple mail template with a cms:container tag and a
> formatter like this:
>
>
> ---- main.jsp ----
>
> ....					
> <cms:container name="democenterlist" type="democenter" maxElements="8"
> detailview="true"/>
> ...
>
>
> ---- formatter.jsp ---
>
> ....
> <cms:formatter var="content" val="v">
>
> This is a formatter!
>
> </cms:formatter>
>
> ------------------------
>
>
> And it didn't work; The content of the formatter "This is a
> formatter!" wasn't displayed.
>
> However, when I make the formatter like this instead, it worked fine :
>
>
>   ---- formatter.jsp ---
>
> ....
> <cms:formatter var="content" val="v">
>
> <div>This is a formatter!</div>
>
> </cms:formatter>
>
> ------------------------
>
>
> What's going on here?
>
>
> Cheers,
> Yuta
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-- 
Kind Regards,
Michael.

-------------------
Michael Emmerich

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list