For the life of me I cannot find the editors config file. Anyone know where this is located?
Hi Lawrence,
You'll need to use a custom config file, I'd check over this documentation page.
thanks, I tried adding this but am getting an error that
@if (Context.Kentico().PageBuilder().EditMode) { @Scripts.Render("~/Scripts/SimpleConfiguration.js") }
The name 'Scripts' does not exist in the current context
I believe that's for MVC5 bundling, I assume you're using .NET Core?
I'd just add a direct script tag:
@if (Context.Kentico().PageBuilder().EditMode) { <script src="~/Scripts/SimpleConfiguration.js"></script> }
Yes, .net core. So that will work. Thanks, still learning all this. :)
Please, sign in to be able to submit a new answer.