overwrite Content.ControlWrapper.cshtml for specific type

Topics: General, Troubleshooting, Writing modules
Nov 5, 2011 at 5:03 PM

How can i overwrite the default Content.ControlWrapper.cshtml by a custom one and only let it overwrite for a specific type.

i have created the wrapper but it keeps using the original one.  Though i see my new custom wrapper in the design tool under the original wrapper.

Nov 5, 2011 at 5:55 PM

ok i've manged to get it working by using:

metadata.OnDisplaying(ctx => {

wrapper in placement resulted in error like:

Operator '>' cannot be applied to operands of type 'ClaySharp.Clay' and 'int'

can someone exaplain why the first method gives an other result the by placement?