I have the sign up working fine when i hard code the mil chimp list ide into th emacro call, however when i try and is an umbraco item or a macro to insert the value into the mail chimp macro call i get an invalid list id.
If output the umbraco item straight to the page it shows the correct mail chimp id.
I have tried stripping white space but to no avale.
I have also tried using an umbraco item set to recursive to retrieve the id but this has not worked either, I was wondering whether white space could be an issue?
invalid id when using macro to pass in ID
Hey all,
I have the sign up working fine when i hard code the mil chimp list ide into th emacro call, however when i try and is an umbraco item or a macro to insert the value into the mail chimp macro call i get an invalid list id.
If output the umbraco item straight to the page it shows the correct mail chimp id.
I have tried stripping white space but to no avale.
any suggestions would be great!
L
Hi Lachlann
How do you try to pass the value to the macro? And where do you get the value from?
/Jan
Thanks for your reply,
The value if set on the home page document type and i use the macro to recursibly look up the tree and retrieve it like so:
<xsl:value-of select="$currentPage/ancestor-or-self::*[./newsletterID!=''][1]/newsletterID"/>
this returns the expected value when rendered in the master page. To pass it into the Mail chimp macro i do the following:
<umbraco:Macro Alias="MailChimp4UmbracoSubscribeExtended"
MailChimpListId="<umbraco:Macro Alias='MailChimpID' runat='server'/>"
runat="server"></umbraco:Macro>
I have also tried using an umbraco item set to recursive to retrieve the id but this has not worked either, I was wondering
whether white space could be an issue?
L
Ahh figured it out well found this page which told me how to do it!
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
thanks jan
Hi Lachlann
Good to hear you found the solution :-)
/Jan
is working on a reply...