|
Home > Archive > WebSphere Portal Server > January 2007 > Checking for empty content in Presentation Templates
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Checking for empty content in Presentation Templates
|
|
|
| Hi everyone,
I'm creating an intranet site using WebSphere Portal need to do some WCM validation within my presentation template to check to see whether a content item (in this case Rich Text) has been filled in before printing it out.
E.g. I want to wrap my validation around:
Check that Page Header is not empty
<div id="header">
<Element context="current" type="content" key="Page Header"/>
</div>
End check.
I've searched all morning trying to find a way to do this, and I know there's an "is" function, but no examples on how to use it.
If anyone could point me in the right direction, I'd really appreciate it.
Thanks!
| |
| breal@us.ibm.com 2007-01-09, 1:57 am |
| What version of Portal/WCM are you using? In V6.0 you can make the RTE
field required which should do what I think you are looking to do.
|
|
|
|
|