So i built a simpel slideshow macro (code below). Which all works great except for one detail. I'm not using my "source" variable to get the right folder in the media library. The problem is when i try to, that is replace "1198" with "$source", it says: "System.OverflowException: Value was either too large or too small for an Int32."
The weird think is that i'm using it in the line above "s{$source"}" .. were it correctly returns "s1198". What am i doing wrong, since it doesn't want to recognize my variable as an Int32?
Having trouble using variable from macro
So i built a simpel slideshow macro (code below). Which all works great except for one detail. I'm not using my "source" variable to get the right folder in the media library. The problem is when i try to, that is replace "1198" with "$source", it says: "System.OverflowException: Value was either too large or too small for an Int32."
The weird think is that i'm using it in the line above "s{$source"}" .. were it correctly returns "s1198". What am i doing wrong, since it doesn't want to recognize my variable as an Int32?
You can find the solution here
http://forum.umbraco.org/yaf_postst3143_NiceUrl-failing-on-valid-node.aspx
Rich
Wrapping
around did the trick. Thanks Rich.
is working on a reply...