And added the parameters title and mediaFolderId to the related macro.
I then created new Macro Container data type and selected the macro GraphicsRow as allowed macro. I then added a new field of the new data type into a document type and then imported that field into a template.
Finally, from the content, I inserted the macro and added a title and selected media foler... However, I could see that the macro calls the correct xslt with the correct title and mediaFolderId but the parameters are always empty!
Any thought?! Note, I always get this
<?UMBRACO_MACRO macroalias="GraphicsRowSlider" title="Add Title here" mediaFolderId="1159" />
The UMBRACO_MACRO code is calling a macro called "GraphicsRowSlider" with the parameters you created for the "GraphicsRow" macro - is that because the alias is different from the name (which should totally work with no problems), or did you maybe try this earlier with another macro?
Thanks Chriztian, I missed type the macro alias, it is actually GraphicRowSlider, so, it is just the same name as coming from the content but still doesnt work :(
XSLT is not reading Macro Container parameters added to a content
I created an xslt called GraphicsRow with the following parameters
<xsl:param name="mediaFolderId" select="/macro/mediaFolderId" />
<xsl:param name="title" select="/macro/title" />
And added the parameters title and mediaFolderId to the related macro.
I then created new Macro Container data type and selected the macro GraphicsRow as allowed macro. I then added a new field of the new data type into a document type and then imported that field into a template.
Finally, from the content, I inserted the macro and added a title and selected media foler... However, I could see that the macro calls the correct xslt with the correct title and mediaFolderId but the parameters are always empty!
Any thought?! Note, I always get this
Hi MOthman,
The UMBRACO_MACRO code is calling a macro called "GraphicsRowSlider" with the parameters you created for the "GraphicsRow" macro - is that because the alias is different from the name (which should totally work with no problems), or did you maybe try this earlier with another macro?
/Chriztian
Thanks Chriztian, I missed type the macro alias, it is actually GraphicRowSlider, so, it is just the same name as coming from the content but still doesnt work :(
is working on a reply...