Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Aug 24, 2010 @ 00:10
    Eddie Foreman
    0

    Some Advice on Members

    Hi All

    Looking for some advice...

    Have created a member registration form and an BeforeSave event which handles the approval process from the Umbraco backend.  Part of the approval process is for an automated emai (approval or declined).  All of the above is working fine, the issue I have is that I would like the email messages to be editable.

    The messages are a public strings in the event class. If I add properties to say the home documnet type.  Can I then use member to acces the node ID of the page and obtain the email message.  

    Bascally I would like to have two editable text areas  that can be accessed during the member BeforeSave event.

    Thanks

    Eddie

  • Eddie Foreman 215 posts 288 karma points
    Aug 24, 2010 @ 11:37
    Eddie Foreman
    0

    Hi All

    Solved this by creating a macro and loading the dll via the .Net Custom Control field.

    Would be grateful if someone could reply, so that I can mark the topic as solved.

    Thanks

    Eddie

  • Bijesh Tank 192 posts 420 karma points
    Aug 24, 2010 @ 12:02
    Bijesh Tank
    0

    This is possible. I've done something similar in the past.  You can access the document id and get the relevant property(s). So in your code, you could have something similar to this:

    Document doc = new Document(1056);
    string emailMessage = doc.getProperty("emailMessage").Value;

  • Eddie Foreman 215 posts 288 karma points
    Aug 25, 2010 @ 10:32
    Eddie Foreman
    0

    Hi Bijesh

    Thanks, seems like it's the way to go.

    Eddie

Please Sign in or register to post replies

Write your reply to:

Draft