Feather Widget Designer - Hide Advanced View
Hello,
I'm wondering if it is possible to hide the advanced view of a widget designer when using Feather. I've found instructions for Web Form designers here but cannot find anything with Feather.
Thanks,
Zack
Well everything runs in the context of your site, like your CSS should be able to modify things...however I had a peek and that button doesn't have any custom class to target it, it's not even the last-child.
I'm gonna submit as an issue
Hi,
You can take a look at the designer implementation here:
Telerik.Sitefinity.Frontend.Mvc.Controllers.DesignerController.cs
https://github.com/Sitefinity/feather/blob/0497e84bddda114c4543edfe630ab8acef1d3f1a/Telerik.Sitefinity.Frontend/Mvc/Controllers/DesignerController.cs
Designer scripts:
https://github.com/Sitefinity/feather/tree/32e8690192ca35cfd82d7e6011b6f70f858ea741/Telerik.Sitefinity.Frontend/Mvc/Scripts/Designer
Note the links refer to latest version.
You can still use jQuery contains selector to find the element client side:
$(document).find(
"a:contains('Advanced')"
)
Hello Zack,
You can hide the Advanced button by defining a custom footer in your designer view: github.com/.../Overriding-the-default-widget-designer-buttons
Just tried it myself and it works like a charm. Hiding it via jQuery works as well of course, but this alternate solution might work out for you as well.