Hey, could you explain this in a bit more detail. I am confused about what you are trying to do. When you say macro, do you mean xslt? Could you explain what you have setup in the content tree as well :). Thanks
If you create a Macro parameter with the alias linkProperty of type propertyTypePicker, you can use that to select the property holding the Related Links, when you insert the macro - just change the variable to this:
Chriztian, being looking macro parameters but any chance you could explain sort of what they are and how i could apply them in my XSLT? Thanks, would be really greatful. Charles :)
Dispalying all related links
How do I go about displaying related links without having to create a separate macro for every document type property?
As of right now, I have to hardcode the property alias into separate xslt files. Is there a way to enter different aliases, but just use one macro?
Hey, could you explain this in a bit more detail. I am confused about what you are trying to do. When you say macro, do you mean xslt? Could you explain what you have setup in the content tree as well :). Thanks
Hi Seena,
If you create a Macro parameter with the alias linkProperty of type propertyTypePicker, you can use that to select the property holding the Related Links, when you insert the macro - just change the variable to this:
/Chriztian
Chriztian, being looking macro parameters but any chance you could explain sort of what they are and how i could apply them in my XSLT? Thanks, would be really greatful. Charles :)
Hi Charles,
Hadn't seen your question, but here's how they work:
You create a macro parameter on the Parameters tab of the Macro. You assign it a Name, an Alias and a type (text, media picker etc.)
When you add the macro to a template (using the GUI) Umbraco will prompt you for values for all the parameters you've defined.
In the XSLT you can get the values by selecting them as children of the /macro element, using the Alias you've set for the parameter(s) e.g.:
Hope that gets you going,
/Chriztian
PS: This is because Umbraco executes all XSLT macros by feeding them an XML document that looks like this:
Thanks Chriztian :) when and where would i use them? As opposed to letting a user enter the value in the content tree? Thanks Charles.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.