Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Just playing around with the RC for Juno today and it appears macro parameters aren't getting passed through to the XSLT.
I.e.
masterpage:
<umbraco:Macro ID="Macro1" Alias="ahProductBox" runat="server" ShowInLeftCol="0"></umbraco:Macro>
XSLT:
<xsl:variable name="ShowInLeftCol" select="/macro/ShowInLeftCol"/> <xsl:template match="/"> <xsl:value-of select="$ShowInLeftCol"/>
No value is displayed. The macro has the parameter included.
I have also tried this with the business skins by changing the numberOfItems to 1 and it was also not picked up there:
<umbraco:macro id="Macro1" numberofitems="1" excerptlength="90" alias="umbBusinessFrontpageNews" runat="server"></umbraco:macro>
Cheers
Paul
Same issue for me here. Have created a bug on codeplex
http://umbraco.codeplex.com/workitem/29860
I've put some questions into the bug you raised, but in the future can you please try and include more detail, not just pointing to a forum post.
Here's the guide to submitting bugs - http://our.umbraco.org/wiki/how-tos/submitting-bug-reports
Fair point, and of course.. I can't replicate now... will keep digging.
I've got the same issue.
@slace commented on Codeplex issue.
Looking into it right now - fix coming ASAP.
Confirmed and fixed. New build coming within the hour!
Hey Niels, I'd maybe hold off on that for a bit, finding more issues with caching with regard to razor templates (after haxing a fix in for those as well).
Could you please post more details?
@Chad: Found the bug - after editing the razor file the old compiled script doesn't get released - will fix!
That sounds like it. Updated codeplex already with more details (http://umbraco.codeplex.com/workitem/29858)
Any updates on when fixes will be released?
Today - they're already committed and we're testing them now...
We believe we've fixed all the bugs reported since the release. Could you help us test with this nightly build: http://bit.ly/gtoyV1
Tested with fresh install: works now!
Are you going to push out a new release anytime soon ?
Params are now passing to macros, but doesn't appar that NiceUrl nor GetMedia are returning anything.
These don't work now:
<xsl:value-of select="umbraco.library:NiceUrl($nodeId)"/><xsl:value-of select="umbraco.library:GetMedia($media/@id, 'false')/umbracoFile" />
All is working now!
Well, for me, not ALL is working ...
parameters are being passed to the macro all right (an ascx control), but when I push them out to an XSLT file, they are lost, see code below:
XsltArgumentList arguments = umbraco.macro.AddXsltExtensions();arguments.AddExtensionObject("urn:umbraco.library", new umbraco.library());arguments.AddExtensionObject("urn:odin.xslext", new Odin.Modules.Extensions.Xslt());arguments.AddExtensionObject("target-page-id", this.TargetUrlID.ToString());arguments.AddExtensionObject("target-url", umbraco.library.NiceUrl(this.TargetUrlID));arguments.AddExtensionObject("culture", this.Culture);
None of these arguments show up in my XSLT file, and they all did in the 4.6 Beta ...
all appears to working as expected now in 4.6.1
I am having a issue with passing a value of the current node to a ascx control.
<umbraco:Macro Alias="YourMacroAlias" runat="server" YourPropertyName="[#pageID]"></umbraco:Macro>
The value is not passed the .NET control.
Using 4.6.1.
See http://our.umbraco.org/wiki/reference/templates/umbracomacro-element
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Macro parameters don't appear to be working Juno (Stable)
Hi,
Just playing around with the RC for Juno today and it appears macro parameters aren't getting passed through to the XSLT.
I.e.
masterpage:
<umbraco:Macro ID="Macro1" Alias="ahProductBox" runat="server" ShowInLeftCol="0"></umbraco:Macro>
XSLT:
<xsl:variable name="ShowInLeftCol" select="/macro/ShowInLeftCol"/>
<xsl:template match="/">
<xsl:value-of select="$ShowInLeftCol"/>
No value is displayed. The macro has the parameter included.
I have also tried this with the business skins by changing the numberOfItems to 1 and it was also not picked up there:
<umbraco:macro id="Macro1" numberofitems="1" excerptlength="90" alias="umbBusinessFrontpageNews" runat="server"></umbraco:macro>
Cheers
Paul
Same issue for me here. Have created a bug on codeplex
http://umbraco.codeplex.com/workitem/29860
I've put some questions into the bug you raised, but in the future can you please try and include more detail, not just pointing to a forum post.
Here's the guide to submitting bugs - http://our.umbraco.org/wiki/how-tos/submitting-bug-reports
Fair point, and of course.. I can't replicate now... will keep digging.
I've got the same issue.
@slace commented on Codeplex issue.
Looking into it right now - fix coming ASAP.
Confirmed and fixed. New build coming within the hour!
Hey Niels, I'd maybe hold off on that for a bit, finding more issues with caching with regard to razor templates (after haxing a fix in for those as well).
Could you please post more details?
@Chad: Found the bug - after editing the razor file the old compiled script doesn't get released - will fix!
That sounds like it. Updated codeplex already with more details (http://umbraco.codeplex.com/workitem/29858)
Any updates on when fixes will be released?
Today - they're already committed and we're testing them now...
We believe we've fixed all the bugs reported since the release. Could you help us test with this nightly build: http://bit.ly/gtoyV1
Tested with fresh install: works now!
Are you going to push out a new release anytime soon ?
Params are now passing to macros, but doesn't appar that NiceUrl nor GetMedia are returning anything.
These don't work now:
<xsl:value-of select="umbraco.library:NiceUrl($nodeId)"/>
<xsl:value-of select="umbraco.library:GetMedia($media/@id, 'false')/umbracoFile" />
All is working now!
Well, for me, not ALL is working ...
parameters are being passed to the macro all right (an ascx control), but when I push them out to an XSLT file, they are lost, see code below:
None of these arguments show up in my XSLT file, and they all did in the 4.6 Beta ...
all appears to working as expected now in 4.6.1
I am having a issue with passing a value of the current node to a ascx control.
The value is not passed the .NET control.
Using 4.6.1.
See http://our.umbraco.org/wiki/reference/templates/umbracomacro-element
is working on a reply...