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...?
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.
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...
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?
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...?
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
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?
I totally agree Eric ... it seems strange and I find makes the Macro Container pretty unwieldy
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
is working on a reply...