[opencms-dev] two questions about cms:contentload

Corsin Camichel cocaman at gmail.com
Mon Jul 25 10:39:01 CEST 2005


hi Felix

I had a similiar problem until i could figure out that "exists" means,
that there is NO TAG <MyField> and not if <MyField /> is emtpy!



On 7/25/05, Felix Garcia <fnmtool at hotmail.com> wrote:
> Hi again,
> 
> I tested using ifexistsnone and it doesn't work. In next code, I never get
> the message "No SubTitle" for a list of contents where SubTitle field is
> empty:
> 
> <cms:contentload.....
> .........
> <cms:contentcheck ifexists="SubTitle" >
>         <cms:contentshow element="SubTitle" />
> </cms:contentcheck>
> <cms:contentcheck ifexistsnone="SubTitle" >
>         No SubTitle
> </cms:contentcheck>
> ..........
> 
> 
> Regards,
> 
> FĂ©lix
> 
> >From: "Borja Marcos Suarez" <borja.suarez at fundacionctic.org>
> >Reply-To: The OpenCms mailing list <opencms-dev at opencms.org>
> >To: "The OpenCms mailing list" <opencms-dev at opencms.org>
> >Subject: RE: [opencms-dev] two questions about cms:contentload
> >Date: Mon, 25 Jul 2005 09:05:04 +0200
> >
> >Hi Felix,
> >
> >2) Inside cms:contentload I can check if a element exists but, How can I
> >
> >check if an element doesn't exist?
> >
> >Try with
> >
> ><contentcheck ifexistsnone="" ...>
> >
> >
> >Best regards,
> >
> >Borja
> >
> >
> >
> >
> >_______________________________________________
> >This mail is send to you from the opencms-dev mailing list
> >To change your list options, or to unsubscribe from the list, please
> >visit
> >http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> >_______________________________________________
> >This mail is send to you from the opencms-dev mailing list
> >To change your list options, or to unsubscribe from the list, please visit
> >http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 


-- 
Corsin Camichel
cocaman at gmail.com



More information about the opencms-dev mailing list