2

Not sure which version of Sitecore you are on though. But with newer versions of Sitecore, e.g. Sitecore 9.1, you can certainly do that from Experience Editor too, similar to how you do from the Content Editor. From the "Home" Tab, click on "Settings". You should see a dialog box open for Publishing Settings as can be seen in the below ...


2

The easiest method would be to remove your dependency on jQuery and just write vanilla JS. There are a lot of benefits to this, while jQuery used to be really useful, there is very little reason to use it in modern websites. Take your example: <script> $(document).ready(function(){ $("#btn").click(function(){ ...


1

We faced the same issue while working, so we came up with this solution. Although there can be a better solution than this, we tried this and it worked for us - <script type="text/javascript"> var waitForJQuery = setInterval(function () { if (typeof $ != 'undefined') { clearInterval(...


1

How to fix approach 2: Register a custom ASP.NET MVC route for your action. You need to create new processor: public class RegisterCustomRoute { public virtual void Process(PipelineArgs args) { RouteTable.Routes.MapRoute("CustomRoute", "some/route/{controller}/{action}/{id}"); } } and add calling your processor to initialize ...


Only top voted, non community-wiki answers of a minimum length are eligible