But it looks like the property "bannerPosition" is not parsed to the xslt. If i use a fix value instead it is parsed. I also looked if the property is named correctly.
I think you confuse the concept of macro properties.
If you insert 1 into the position like position="1" instead of #bannerPosition it will probably work.
If you want to insert #bannerPosition then you need to have a property on your document type called "bannerPosition" where the value of the banner position is stored. This can be used when you insert the macro directly in a template.
If you insert the macro inside a rich text editor then the above approach by fetching the value from the macro parameter should be used. The value comes from the value, which is inserted into the parameter field during the insertion by the editor.
I hope the above makes sense and helps you move forward? :-)
get document property into macro
I cant get the property of a document type into my macro
i got the following line inside my template file:
But it looks like the property "bannerPosition" is not parsed to the xslt. If i use a fix value instead it is parsed. I also looked if the property is named correctly.
Anybody any idea?
Hi Dominik
What does your XSLT for this look like?
/Jan
And i get the value via :
What I have forgot to mention the property is a property of a media type - perhaps this is the reason why it does not work?
How can i get the media type property inside my template?
Hi Dominik
I think you confuse the concept of macro properties.
If you insert 1 into the position like position="1" instead of #bannerPosition it will probably work.
If you want to insert #bannerPosition then you need to have a property on your document type called "bannerPosition" where the value of the banner position is stored. This can be used when you insert the macro directly in a template.
If you insert the macro inside a rich text editor then the above approach by fetching the value from the macro parameter should be used. The value comes from the value, which is inserted into the parameter field during the insertion by the editor.
I hope the above makes sense and helps you move forward? :-)
/Jan
is working on a reply...