From the CMS editor I selected the 'Insert Macro' option and from the dropdown chose the one I'd created. It then asked for parameters of height, width & location.
These values are visible (as their alias values) in the rendered HTML on the published page although between < and > tags with UMBRACE MACRO inside and the alias values.
Rendering a Macro - the macro appears as comments in browser
I'm trying insert an iFrame into a webpage, and have discovered a short piece of XSLT code that enables me to set up a macro in order to allow this.
In the browser I see the following:
< !UMBRACO_MACRO heightid="360" locationid="https://player.vimeo.com/video/178617772" widthid="640" macroAlias="IFrameInsert" / >
I've looked online for solutions, and although I'm pretty unfamiliar with Umbraco's insides have read things about:
...so the question is, how do I make my macro work and exactly where do I have to put any of this extra code that I might need?
Thanks in advance Iain
Hi Iain
Welcome to our Community! You have to create macro in Umbraco backend first of all, get alias and after it insert macro to the page or view.
Did you create Macro in developers section in Umbraco?
https://our.umbraco.org/documentation/reference/templating/macros/
Thanks,
Oleksandr
Hi Alex,
Yes, have created a macro in the devleopers section from the XSLT and aliased according to the article here, http://www.smickus.org/inserting-iframes-with-the-umbraco-cms/#sthash.y9ox7Bus.dpbs
I've gone through all the steps and get this issue when it renders.
Any ideas?
Thanks
Hi Iain
How did you include the macro to your page?
Hi,
From the CMS editor I selected the 'Insert Macro' option and from the dropdown chose the one I'd created. It then asked for parameters of height, width & location.
These values are visible (as their alias values) in the rendered HTML on the published page although between < and > tags with UMBRACE MACRO inside and the alias values.
Thanks Iain
Any more ideas of what might be causing this to happen?
Cheers Iain
is working on a reply...