• Resolving macros inside transformation with parameters
    Question Oct 28, 2014
    I'm having trouble resolving a macro inside of a nested repeater, and I'm running into some interesting behavior. My objective is to determine the appropriate "WhereCondition" for a nested repeater by resolving a macro with the given context: ` ` Here's my custom macro setu...

  • String.IsNullOrWhitespace isn't Returning True for System.DBNull .. How to Check for DBNull in Macro
    Question Jul 29, 2020
    I have a macro expression that is as follows in K12 Portal Engine: if (!String.IsNullOrWhitespace(MyPageTypeString)) { if (MyPageTypeString.Trim().Contains("xxxx.xxxx.net")) { //do something } } and I'm getting the following exception: Met...

  • How to get the statedisplayname in k# notification macro
    Question Aug 11, 2020
    HI i try to get the statedisplayname from the table CMS_State in k# in a email notification. i have the stateID but cant figure out how to get the name. I was able to get the countryname with: Thank you

  • Get Page Menu Type Document Path Using Node ID Macro
    Question Feb 18, 2022
    There are times I set a repeater's content path to a child item or Page Menu item that exists on a different Page (Menu item) anywhere in the CMSTree, and all works well until a content editor decides to change the name of the page, which makes all the repeaters stop working u...

  • Macro Resolve a custom complex object
    Question Apr 27, 2023
    I have a mapped order object, with child line item objects etc.. What is the best way of adding it to the resolver to use in an email? I've looked at the GetShoppingCartResolver and tried setting the Anon object etc.. but I assume the Info classes have additional properties ...

  • How It's Done: SO Integration Part 1 - The Mighty Macro Data Source
    Article Jan 26, 2016
    In one of my previous articles, I promised I'd bring you some details about how the StackOverflow integration on DevNet has been done. Today, I'll focus on how the Macro Data Source web part saved us a lot of time and how flexible it is, compared to traditional data sources.

  • Kentico 7->8 Upgrade failure
    Question Dec 5, 2014
    Hey guys, I've been trying to update a legacy site from 6 -> 8.1 I manage to upgrade the site from 6 -> 7 and open up the site/admin without any issues. When i attempt to go from 7 -> 8 I keep getting this error in the log file on DB upgrade. DECLARE @resourceID in...

  • Unable to build search index
    Question Sep 18, 2015
    Hi everyone! I have an issue with building search index. I'm running Kentico 8 on Azure as a cloud service. Have CMSApp and SearchWorker roles there, both are running fine according to Azure portal. No web farm. I was able to build index with simple analyzer type, but no luc...

  • Web Parts with custom Zone
    Question May 15, 2018
    So I am trying to create a web part that has a zone into it. Basically, I have a web part that I want to create a zone that I can allow it to be a widget so that a user could edit certain properties. This way an admin could add the web part, and then give the user the abilit...

  • Sign out user but server side not clear the authenticate session
    Question Aug 27, 2019
    I have a page with security setting is Requires authentication = Yes But after i used following code snippet to sign out user AuthenticationHelper.SignOut(); HttpContext.Current.Response.Cache.SetNoStore(); And after that i user fiddler to to recal...

  •   ... 31 32 33 34 35 36 37 38 39 40 ...