x First time here? Check out the FAQ
  • Avatar91posts151karma

    Add new parameter types to Macros

    Chad Rosenthal started this topic 8 months ago , this topic was edited at: Tuesday, January 05, 2010 11:21 AM, Go directly to the topic solution

    I've seen a bunch of information on how to add  new data types to be used in Document Types, but I'm having a hard time finding out if there is a way to add a new Type to the Parameters list of a Macro. 

    Basically, I'm trying to 'idiot' proof a membership control. Right now the control is set-up to receive a string that has the membership types and membership groups that the new user should be assigned to. Since this might be different with every install, it needs to be passed in to the control. Yet, having it passed as a string creates the additional potential that they will enter the information in incorrectly. I'm aware that developers could still screw it up when they are editting the template, but it would still be much easier if they could see a multi-select box with all of the available Membership Groups and Membership Types. 

    Thanks,
    Chad


  • Replies

  • Dirk De Grave posted this reply 8 months ago

    Hi Chad,

    you'd need to code a class that implements IMacroGuiRendering interface which lives in the... interfaces assembly. If you need to have an example, have a look at the core source code (folder components\macroRenderings)

     

    Hope this helps.

    Regards,

    /Dirk


  • Avatar91posts151karma
    Comment with ID: 22389
    Chad Rosenthal posted this reply 8 months ago

    Thanks for the assist. I'll give it a look.


  • Avatar887posts2070karma
    MVP Comment with ID: 22398
    Richard Soeteman posted this reply 8 months ago

    I'm currently writing a blogpost + wiki with an example for this. will publish it tonight.


  • Avatar887posts2070karma
    MVP Comment with ID: 22434
    Richard Soeteman posted this reply 8 months ago

    Just published a blogpost about this topic


  • Avatar91posts151karma
    Comment with ID: 22445
    Chad Rosenthal posted this reply 8 months ago

    Awesome blogpost. Now I'm saddened that I already closed the solution.


  • Avatar887posts2070karma
    MVP Comment with ID: 22466
    Richard Soeteman posted this reply 8 months ago

    Thanks and no worries about that.


Please login or Sign up To post replies