Placing an umbraco macro alias from within a 'textbox multiple'
If I place an umb_macroalias statement within a textbox multiple, the page renders fine, but validators don't like : there is no attribute "umb_macroalias" <div umb_macroalias="MostRecentBlogPosts" ismacro="true" onresizestart="r… or there is no attribute "ismacro" …roalias="MostRecentBlogPosts" ismacro="true" onresizestart="return false;" umb…
etc.
So, how can I include this macro without failing validation?
That's actually TWO macro calls; no? I deleted the first (non-working) macro call, and the non-valid code no longer renders. The second call works great.
Placing an umbraco macro alias from within a 'textbox multiple'
If I place an umb_macroalias statement within a textbox multiple, the page renders fine, but validators don't like :
there is no attribute "umb_macroalias" <div umb_macroalias="MostRecentBlogPosts" ismacro="true" onresizestart="r…
orthere is no attribute "ismacro" …roalias="MostRecentBlogPosts" ismacro="true" onresizestart="return false;" umb…
etc.
So, how can I include this macro without failing validation?
By "validator" I meant the W3C validation service.
So this is not possible?
Hi Kyle
To put a macro into a Textbox Multiple you will need to use a slightly different macro tag syntax (its actaully a very old syntax).
If you use this your macro should render in your template :)
Peter
If you get save errors you will need to html encode the chars.
I'm not doing something correctly.
Here is the original macro call:
<div umb_macroalias="MostRecentBlogPosts" ismacro="true" onresizestart="return false;" umbversionid="8fe22984-3835-474c-97e7-0460f929cd5d" umbpageid="1060" title="This is rendered content from macro" class="umbMacroHolder">
<!-- startUmbMacro --><!-- endUmbMacro -->
<umbraco:Macro Alias="UmbBlogMostRecentPost" runat="server"></umbraco:Macro> </div>
That's actually TWO macro calls; no? I deleted the first (non-working) macro call, and the non-valid code no longer renders. The second call works great.
That fixed it; much thanks for your help!
is working on a reply...