How to display all umbracoUrlAlias values from child nodes
Hello Umbraco Community,
I have a live site that uses umbracoUrlAlias to create direct access to products via a part number. The content tree structure reflects the full path to the product, the alias is 123-123-12
I've been maintaining a list of part numbers manually to enable a type-ahead search facility, but need to automate this now...
To do this I need to pull a list of ALL umbracoUrlAlias values from a particular document type. That document type is two levels down from the location that I want to display the macro.
Is this possible with XSLT ? I really just want to retrieve the value of that field where the document type has an alias of productPage ...
Many thanks in advance for any light you can shed on this!
Here's a quick macro that shows you how to go about something like this - heck, you could even use the uComponents RenderMacro control to render this as a "dashboard" property on any document type!
How to display all umbracoUrlAlias values from child nodes
Hello Umbraco Community,
I have a live site that uses umbracoUrlAlias to create direct access to products via a part number. The content tree structure reflects the full path to the product, the alias is 123-123-12
E.g.
http://www.coax-connectors.com/96-106G
=
http://www.coax-connectors.com/products/tooling/96-106g-non-ratchet-crimp-tool.aspx
I've been maintaining a list of part numbers manually to enable a type-ahead search facility, but need to automate this now...
To do this I need to pull a list of ALL umbracoUrlAlias values from a particular document type. That document type is two levels down from the location that I want to display the macro.
Is this possible with XSLT ? I really just want to retrieve the value of that field where the document type has an alias of productPage ...
Many thanks in advance for any light you can shed on this!
Ben
Hi Ben,
Here's a quick macro that shows you how to go about something like this - heck, you could even use the uComponents RenderMacro control to render this as a "dashboard" property on any document type!
/Chriztian
WOW!
What a star - thanks Chriztian. I can definately work with that.
Cheers
Ben
is working on a reply...