Share » Forums » Setup & design » Alternate Parameter Types for Custom...

Alternate Parameter Types for Custom Tools

Alternate Parameter Types for Custom Tools

Sunday 12 December 2004 9:18:05 pm - 1 reply

Author Message

Eric Weik

Tuesday 14 December 2004 11:24:51 am

Well, I'll take a stab at answering my own question. :-)

In looking at /design/toolbar.tpl, it looks like tool parameters can have 6 types, the default (a simple text field), note, classidentifier, classidentifiers, and subtree. The type is specified by ending the parameter name with _type the toolbar override, like so:

[Tool_exampletool]
parameter1_node=
parameter2_classidentifier=
parameter3_classidentifiers=
parameter4_subtree=
parameter5_check=yes

<i>As of 3.5rc2, if you do not set parameter5_check to default as either yes or no, it will not render as a checkbox. </i>

Presumably you can add more types (i.e. "textarea", etc.) by overriding /design/toolbar.tpl for your admin siteaccess. I personally have not had any success with this method, but it is likely due to my own relative inexperience with the override system.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu