Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Check for child nodes in transformation View modes: 
User avatar
Member
Member
lwhittemore-emh - 8/19/2012 12:40:22 PM
   
Check for child nodes in transformation
Is there a way to use the IfEmtpy() in a transformation to check if the current document has any child nodes.

What I am trying to accomplish is to hide a "read more" button when there is no content in the description field. However I have found that some pages have no content in the description but have content in child documents such as articles that would display if the page was being accessed.

Hope this makes sense.

Thanks
Lawrence

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 8/20/2012 12:08:10 AM
   
RE:Check for child nodes in transformation
{%IfCompare(NodeChildNodesCount,0,"NoChildren","Children")%}

User avatar
Member
Member
lwhittemore-emh - 8/21/2012 11:30:48 AM
   
RE:Check for child nodes in transformation
Awesome thanks. To get it to work the way I needed it I changed it to this
<%# IfCompare(Eval("NodeChildNodesCount"),0,"Children","NoChildren") %>