Portal Engine
Version 2.x > Portal Engine > NodeAliasPath does not work CMSDatalist in transformation View modes: 
User avatar
Member
Member
timber - 2/20/2008 9:33:48 PM
   
NodeAliasPath does not work CMSDatalist in transformation
Hi,

I cannot seem to get this to work. In the default transformation of the category-page of a productcatalog I want to include the name of the products in that category. So I add the code below which in theory should do the trick... however the expression in the Path property does not seem to work. When I just put the expression in the transformation it does work as I see the right path... when I hardcode that path-stirng in the path-property it's not dynamic and related to the category of course, but it does work. Am I doing something wrong? Anybody??

regards,



<cc1:CMSDataList ID="CMSDataList2" runat="server" ClassNames="custom.HoistingProduct" TransformationName="custom.HoistingProduct.List" RepeatLayout="Flow" Path='<%# Eval("NodeAliasPath") %>/%' />

User avatar
Member
Member
timber - 2/23/2008 10:56:31 AM
   
RE:NodeAliasPath does not work CMSDatalist in transformation
anyone?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/26/2008 2:38:18 PM
   
RE:NodeAliasPath does not work CMSDatalist in transformation
Hi,
could you please try to not use the Path property for the datalist? And also, could you please check if the ID of nested datalist is correct?
When using nested datalits or repeaters it is not necessary to specify the path expression due to the path is obtained from the parent repeater/datalist.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
timber - 2/26/2008 7:03:07 PM
   
RE:NodeAliasPath does not work CMSDatalist in transformation
Tried to leave out hte path property, but then I get the whole list of product, so it is not 'filtered' based on the category.

What do you mean by checking the ID?

thanks for the answer.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/26/2008 7:24:26 PM
   
RE:NodeAliasPath does not work CMSDatalist in transformation
Hi,
could you please confirm that you are using nested datalist in some repeater web part (http://www.kentico.com/docs/webpartsandcontrols/cmsrepeater.htm - almost at the bottom of the page)?
If yes, you need to set the path property of the parent repeater to show only the categories. You can also use the path expressions - http://www.kentico.com/docs/devguide/appendix_b___path_expressions.htm

By checking the ID i meant if you could check the ID of the nested datalist in your repeater configuration.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
timber - 2/27/2008 9:47:45 AM
   
RE:NodeAliasPath does not work CMSDatalist in transformation
Thank you!
It was the NestedDataListID that was not set in the template.
The documentation in version 3 apparently improved a lot, because I was unable to find the info in the docs of version 2

Thanks for your help & keep up the good work!
Tim.