Im a complete XSL noob, so that for-each select line might not even make any sense. Basically, for each property, I want to list each unit type and a few of the properties for each. The property loop is working fine, so it does output 'propertyInfo' and 'propertyOwner', but I cant get it to traverse to unit types and units under the property.
Hi Jared, The nodeTypeAlias is not read from the Name field on the documentType. The documentType alias is used.
I think what you may have done is changed the alias after you created the documentType, which will cause issues as umbraco is still referencing the old alias.
I am not sure how to get the new alias to be picked up by umbraco though. I just make sure i use the alias i want when creating the documentType, and then just update the name.
Problem traversing nodes
I have a simple tree:
-Properties
- - Property1
- - - UnitType1
- - - UnitType2
- - Property2
- - - UnitType1
- - - UnitType2
Here is my XSLT file (problem area is bolded, nothing outputs here):
Im a complete XSL noob, so that for-each select line might not even make any sense. Basically, for each property, I want to list each unit type and a few of the properties for each. The property loop is working fine, so it does output 'propertyInfo' and 'propertyOwner', but I cant get it to traverse to unit types and units under the property.
On the first view it seems to be ok, so please check for typos (xslt is case sensitive).
a trick to get the results of an xslt is to use copy-of in an textarea:
try using this to ourput the xml under the properties
hth, Thomas
Thanks for the textarea tip, i figured out my problem.
Apparently 'nodeTypeAlias' draws from the 'Name' field on the document type page, NOT the 'alias' field....for whatever reason.
Hi Jared,
The nodeTypeAlias is not read from the Name field on the documentType. The documentType alias is used.
I think what you may have done is changed the alias after you created the documentType, which will cause issues as umbraco is still referencing the old alias.
I am not sure how to get the new alias to be picked up by umbraco though. I just make sure i use the alias i want when creating the documentType, and then just update the name.
Hope this helps.
Neil
I am changing the alias of the document types regulary, the changes are reflected if you republish the nodes of this document type.
hth, Thomas
Thanks Thomas, that's really good to know!
I thought you could do it, but I couldn't remember how.
Cheers,
Neil
is working on a reply...