I'm trying to set the style tag inside an email widget in macros. Following works finestyle=@background-color: {% CMSContext.Current.GlobalObjects.CustomTables[@Keyton.EmailTemplateUIElements@].Ite...
I'm trying to get current email recipent data inside a custom macro field. My code below.using CMS; using CMS.DataEngine; using CMS.MacroEngine; using CMS.Membership; //using CMSApp.CustomMethods; ...
I have the following custom macro method which returns custom object 'EmailContact'public class EmailContactMacroMethods : MacroMethodContainer { [MacroMethod(typeof(EmailContact), @Get Contac...
I have a Kentico site that I inherited that I am getting towards the end of updating to Kentico 13.0.106. It has one problem that is pretty major for me at the moment. At the moment, TinyMCE is bre...
I am converting old inline widgets from K12 content into static HTML.To do this I am using IViewComponentHelper.InvokeAsync and need to pass in ComponentViewModel as a param but I also need to pass...
I am using Kentico 13 and trying to connect to the Azure SQL database using managed identity in my localhost environment using the below connection string.@Server=tcp:@MyServer@.database.windows.ne...
How could we get the current page URL in .cshtml page for Kentico 13.Used @Context.Request.GetDisplayUrl().ToString() but getting the below error 'HttpRequest' does not contain a definition for 'Ge...
I am preparing for my next attempt at upgrading a Kentico 12 MVC site (12.0.102) that I inherited to Kentico 13 and I'm just trying to determine viable paths that I can take.What I would like to kn...
Normally in order to get the current document in K13, we must use DI to get the IPageDataContextRetriever.However, when trying to register a custom macro field, adding a constructor to my class (in...
I'm trying to run Kentico 13 CMS in preview mode but i'm getting the following error.An unhandled exception has occurred while executing the request. Message: Try reloading the administration inter...