Copied to clipboard

Flag this post as spam?

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


  • Eric Newton 3 posts 23 karma points
    Feb 16, 2010 @ 17:45
    Eric Newton
    0

    Macro: can't use a treemultipicker data type for a parameter?

    If that's so, then how can I create a macro that gives me the ability to select, say multiple products that I want to display in an html content documenttype...?

     

  • dandrayne 1138 posts 2262 karma points
    Feb 16, 2010 @ 17:50
    dandrayne
    0

    There's nothing like that OOB, but you could try looking at http://www.richardsoeteman.net/CommentView,guid,24E1D561-1F6C-4411-BD62-584023D31DF7.aspx (and http://our.umbraco.org/forum/developers/api-questions/6323-Help-with-creating-a-Macro-Parameter-Type)

    Otherwise, you could enter a comma separated list of node ids as a text file (pita for editors) or pick a parent node if your structure is appropriate.

    Dan

  • Eric Newton 3 posts 23 karma points
    Feb 16, 2010 @ 23:49
    Eric Newton
    0

    Well, my real question is why are macro properties unable to reference data types?  a checkboxlist would be useful in passing parameters to a macro as well as a documenttype, and since a macro is more of a snipplet...

    I would like to use UltimatePicker or TreeMultiPick to select products to be displayed on a particular page, but looks like i'll have to rewrite a whole bunch of code that should just simply be usable in the macro properties as well...

    Am i wrong here?

  • Essy 74 posts 96 karma points
    Jan 11, 2011 @ 21:28
    Essy
    0

    I totally agree Eric ... it seems strange and I find makes the Macro Container pretty unwieldy

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 11, 2011 @ 21:51
    Dirk De Grave
    0

    Eric, Essy

    No need to rewrite a whole bunch of code, it's just a matter of implementing a single interface IMacroGuiRendering. Anyway, if you think this is really missing from umbraco, you should create a work item on Codeplex and vote for it. If it gets enough votes, it'll be considered a feature for a future release (decision still taken by core team - which pretty much follows the 80/20 rule). If it doesn't get enough votes, well, maybe not so many people really have a need for such a macro parameter. 

    Oh, umbraco is open source, so why not build this macro parameter type yourself and release it to the community?

     

    Cheers,

    /Dirk

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft