I was thinking that since [[Widgets]] and [[$Templates]] supports parameters why not let [[*ContentFields]] supports the same? So I came up with this format:
[[*ContentField? ¶m=`value`]]
This can be very useful when working with @Bindings as sugested by Jason. For example:
@SELECT * FROM [+PREFIX+]site_content WHERE pagetitle=’[+param+]’
Another thing came to mind is the ability to invoke methods on a Widget or a ContentField. As you know CFs as well as Widgets will support methods and events.
[[*ContentField? ¶m=`value` &*=`toBold,toUpper` ]]
The &* param is used to represent a comma delimitted list functions to be invoked after processing the CF. These methods can then work on the output of the CF
[[Widget? &*=`drawBox` &color=`#c0c0c0`]]
The above will invoke the drawBox method after executing the widget. The method can then work on the output of the Widget.
Samples:
[[Widget? ¶m=`value` ]]
[[$Template? ¶m=`value` ]]
[[*ContentField? ¶m=`value` &*=`toText` ]]
[[Widget? &*=`drawbox` &color=`#fff`]]
What do you think? Good idea or bad idea? Any other suggessions?