Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1461 posts 1883 karma points
    Oct 20, 2016 @ 12:10
    Gordon Saxby
    0

    Merge custom fields from Umbraco Member

    Is that possible? Is it something that I would need to custom code in a custom Render Task?

    Any chance you have an example?

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Oct 20, 2016 @ 13:02
    Markus Johansson
    102

    Hi!

    You can include them in the content. There is some documentation here: http://support.newsletterstudio.org/customer/en/portal/articles/2115462-custom-data-fields

    In a nutshell:

    Newsletter Studio will replace this with the value from that unique member. So the basic idea is to use [#aliasOfProperty] to include the value in the message body.

    So if you have a member property with the alias "city" you can type [#city] in the body of the newsletter and Newsletter Studio will insert the content here.

    NOTE: You have to active the custom data collection in the settings before this works.

  • ewuski 99 posts 287 karma points
    Oct 13, 2023 @ 16:31
    ewuski
    0

    Great this is possible!

    I have an additional question - we have a custom member field that holds a more complex member data as a IPublishedContent (eg. content picker type property) in a member type.

    Is it possible to replace properties of that content picker type in the email body, eg. content picker is a member property called memberContent and it's IPublishedContent type so cannot be as such inserted as a string to the email body, but properties of memberContent can?

    eg. [#memberContent] cannot but can [#memberContent.city] for example?

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Oct 18, 2023 @ 15:20
    Markus Johansson
    0

    Hi!

    Please note that this is a old post for Umbraco 6 or 7.

    We will support this but the syntax is different for the newer versions. There is more info about this in the Merge Fields-section on this page: https://www.newsletterstudio.org/documentation/package/12.0.0/concepts/email-editor/

    We will not try to understand complex data types on the member, if you need this I would recommend that you implement a custom "Merge Field Provider" and inactivate the built-in one.

    Documentation: https://www.newsletterstudio.org/documentation/package/12.0.0/develop/merge-field-providers/

Please Sign in or register to post replies

Write your reply to:

Draft