Jahia 6 - Length of a container field
MesDocs ParMail <[email protected]> Tue, 10 Feb 2009 16:00:36 +0100
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hi,
How can I test the length of a container field (BigText) ?
In version 5 of jahia I did the following via scriptlet :
String MyFieldDesc = myContainer.getFieldValue("FieldDesc","");
String excerpt = removeTags(MyFieldDesc);
if ((excerpt.length()) > 0) {
.....
}
In Jahia 6 I can access the field with the following statement :
<template:field name='fieldDesc' valueBeanID="MyFieldDesc" display="false" />
Thanks
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list