ASPX templates
Version 6.x > ASPX templates > WhereCodition in univiewer(Universal Viewer) use Hierarchical Transformation View modes: 
User avatar
Member
Member
changdemen007-yahoo - 3/4/2014 7:50:26 PM
   
WhereCodition in univiewer(Universal Viewer) use Hierarchical Transformation
Example:
/Category-1/Subcategory-1/News-1.aspx
/Category-1/Subcategory-1/News-2.aspx
/Category-1/Subcategory-1/News-3.aspx
/Category-2/Subcategory-3/News-1.aspx
/Category-3/Subcategory-3/News-1.aspx

I'm use univiewer(Universal Viewer) use Hierarchical Transformation. I just want to get category (/Category-1) and use wherecodition='NodeAlias='Category-1'' but it only display /Category-1 not display submenucategory(Subcategory-1).
My Project:
<cms:CMSUniView runat="server" ID="uniview" ClassNames="cms.news;cms.danhmuctintuc;cms.menuitem" LoadHierarchicalData="true" Path="/%" HierarchicalTransformationName="cms.menuitem.AnGiang" DelayedLoading="true" WhereCodition='NodeAlias='An-Giang-24h''></cms:CMSUniView>



User avatar
Kentico Support
Kentico Support
kentico_janh - 3/11/2014 8:47:50 AM
   
RE:WhereCodition in univiewer(Universal Viewer) use Hierarchical Transformation
Hello,

Please replace = operator with LIKE, change the property and append % to the value:

WhereCodition="NodeAliasPath LIKE 'An-Giang-24h%'"


Best regards,
Jan Hermann