Re: Help for macro of NAML
Posted by
GregChapman on
Sep 17, 2013; 1:35pm
URL: https://support.nabble.com/Help-for-macro-of-NAML-tp7586563p7586564.html
I haven't tried to do what you are attempting and you don't say exactly which macro you are editing. So I took a look at "ad_notice" as an example.
It seems that in that macro there is both a "text" and "html" part and things behave differently in each.
<text_part>
<t>Dear user,</t>
<t><t.location.root_node.subject/> is running out of credits.</t>
<t>Current Credits</t>: <t><t.number.current_credits/> Credits</t>
<t>If you want to buy more credits, please visit:</t>
<n.base_url/><n.buy_credits_path/>
<t>Regards,</t>
<t>The Nabble team</t>
</text_part>
<html_part>
<t>Dear user,</t><br/>
<br/>
<t><t.location.root_node.subject/> is running out of credits.</t><br/>
<t>Current Credits</t>: <t><t.number.current_credits/> Credits</t><br/>
<br/>
<t>If you want to buy more credits, please visit:</t><br/>
<a href="[n.base_url/][n.buy_credits_path/]"><n.base_url/><n.buy_credits_path/></a><br/>
<br/>
<t>Regards,</t><br/>
<t>Nabble Team</t>
</html_part>
It appears that within the "text_part" spacing out the "<t>...</t>" blocks with spaces or empty lines will make things appear as you wish, but within the "html_part" you need to insert an XHTML <br/> tag - and it must be done OUTSIDE the <t>...</t> tags.
Hope that helps!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.