Hi, I was using contentRandom parameter for 3 macros in 4.0. Now I've updated to 4.7 (update worked well) the conctentRandom doesn't work. In showDebug it says that parent does not have child... but it has children!
I'd recommend installing uComponents (it's almost a must-install anyway) and try out the RandomNode() extension. You should be able to change the contentRandom property to a standard Content picker (pick the parent node) - and in your XSLT you can get the randomNode something like this:
contentRandom
Hi, I was using contentRandom parameter for 3 macros in 4.0. Now I've updated to 4.7 (update worked well) the conctentRandom doesn't work. In showDebug it says that parent does not have child... but it has children!
So, after a quick search I found this : http://our.umbraco.org/forum/developers/xslt/13030-Parent-doesn%27t-have-childeren-using-contentRandom
But I could I fix this? I really need this parameter.
Thank you for your help.
Hi Profiterole,
I'd recommend installing uComponents (it's almost a must-install anyway) and try out the RandomNode() extension. You should be able to change the contentRandom property to a standard Content picker (pick the parent node) - and in your XSLT you can get the randomNode something like this:
/Chriztian
Thank you!! Works great! But it would be even better if option that exist directly whitin Umbraco worked...
is working on a reply...