• Macro documentation
    Question Aug 8, 2016
    I'm struggling a bit with Macros, specifically the seemingly poor documentation of it. Just now I'm looking up ways to output specific rows from custom table via Macro. From the reference page here, I gathered that I can apply a Where clause via Macro. (https://docs.kentic...

  • Default value with Macro for non-string fields
    Question Jun 3, 2014
    Hi, In a field (of a custom table) I'm trying to set a default value from a querystring. This works for fields of string datatype, but not for integers and other non-string data types. I tried something like {?tagid|(toint)|(default)0?} which should result in an integ...

  • Kentico 8 - Macro Expressions for Current Logged in User
    Question Dec 9, 2014
    Hi, I have a custom table that stores user favorited documents. I'm trying to do a query against a view of all content to return a list of user's favorites. I need to get the user id of the currently logged in user using a macro expression if possible. I've tried the followin...

  • Link/Button Web Part Link URL Macro Property
    Question Mar 26, 2014
    I am trying to set the Link URL Property from a Macro as follows: It seems it is never resolved, as the link renders on the page without a "href". The code within the braces will work fine on an ASPX page. What I want to achieve is to add a url to the current url and set is...

  • LoremIpsum Macro
    Question Jun 1, 2016
    I'm trying to locate the LoremIpsum macro syntax, and the reference doc doesn't mention what class it's part of, so I can use it? I apologize, but can't find info on it... Is there a way to search a macro by term and find it in the macro tree? I'm not seeing a way to at th...

  • Running Macro via REST service
    Question Sep 3, 2016
    Trying to utilize the macro REST API. For example: /rest/macro/CurrentSite.SiteName This seems to work only for a user with the Global Admin priviledge. In the debug log, I see this security check that's associated with my request attempt with a user that is not a Global Ad...

  • Adding mulitple memberships to a query as a macro
    Question Nov 11, 2016
    Jan very helpfully supplied a macro for me that allows content to change depending on a membership within a transformation. I would like to be able to set it so that I can list multiple memberships such as * SilverMonth * GoldMonth * PlatinumMonth * SilverAnnual * Gold...

  • Kentico 10 Documents macro isn't working
    Question Feb 22, 2017
    Hello, I have issue with kentico 10 Documents macro. I tried like this: and But in both cases I don't get any results (like that page doesn't exist) -> Always returns NULL. If I try to run this two macros in System -> Macros -> Console, then everything works...

  • Macro for getting field value from all rows of custom table.
    Question Sep 1, 2017
    Hello. I wan't to create field in web part with custom table column values as source. So i need a macro to get appropriate list of strings from custom table. I tried to find it myself, but all i could write is GlobalObjects.CustomTables["namespace.mytablename"].Children...

  • Kentico Macro Based on DOM Element
    Question Feb 22, 2018
    Hey! I'm trying to create a macro to be used in a dataLayer element that grabs the value of an id attribute of a DOM element. Such as: ` ` Where The div would always have the class `QuoteForm` I wanted to create a macro that grabbed the value of the ID element. Maybe someth...

  •   ... 41 42 43 44 45 46 47 48 49 50 ...