Not sure about Razor, but in XSLT there is an issue with using some parameter names such as 'width', 'height', 'cssclass', etc. The issue was they were conflicting with the standard .NET attributes. So try changing the parameters you are having problems with, ie to imgWidth, imgHeight, etc.
Simple parameter parsing from template to macro not working
Hey
I have created a simple macro with 4 parameters to be used in my templates.
param alias' (all are of property text) are :
path
width
height
alt
im my template it looks like this :
and in my macro it looks like this
When loading the page i get the path and alt text out, but not the height and width(11 is just a test value ofc).
So the html looks like this :
Any ideas ?
Hi Rasmus,
Not sure about Razor, but in XSLT there is an issue with using some parameter names such as 'width', 'height', 'cssclass', etc. The issue was they were conflicting with the standard .NET attributes. So try changing the parameters you are having problems with, ie to imgWidth, imgHeight, etc.
HTH,
Tom
Ey Tom
Thx for the info, thought I deleted this one, and moved to razor.
Yeah i found out it was reserved words. but thx :) you get a h5 :)
is working on a reply...