• RE:Using macro on VisualStudio.
    Forum Post Oct 9, 2011
    Hi, thanks for an update. In aspx page code, you can directly access the CMSContext... Anyway, the macro expressions can be resolved in code using string CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros(string inputText) as written in the DevGuide Appendix A - Ma...

  • RE:Newsletter issue Macro
    Forum Post Oct 28, 2011
    Hello, Can you please let us know what you are using for macros within your newsletter, and what you are receiving when the macro is resolved. An Email macro that will resolve the recipient e-mail address in a newsletter would look like: {%Email%} You can use macros...

  • RE:Integer value for macros
    Forum Post Nov 1, 2011
    Hi John, You can use a ToInt macro - “(toint)<default value>”, which converts the result to integer, if not successful, uses the default value. So, in your case it could be: {?a|(default)0|(equals)0|(truevalue)2|(toint)0?} For more information about macro expressions...

  • RE:Integer value for macros
    Forum Post Nov 8, 2011
    Hi John, Oh, I've got it! You probably don't insert your macro through the macro engine (It has to be used, when you want to resolve other types than string). So please click on that little black arrow next to the Top N field and place your macro there. Now it should be wor...

  • RE:Using the classname macro in Page Title Meta Feld
    Forum Post Dec 23, 2011
    I've gotten around the problem by not passing the classname as a parameter, but instead getting the classname from within my custom method from CMSContext.CurrentDocument.NodeClassName (which for some reason isn't available as a macro). This still doesn't address the proble...

  • RE:Registering Custom Macros
    Forum Post Jan 12, 2012
    Hi, yes you can create a custom macro method. More details you can find here: Custom macro method The topic is also discussed in this thread: http://devnet.kentico.com/Forums/f58/t24420/Registering-Custom-Macros.aspx Best regards, Ivana Tomanickova

  • RE:Hide A page(menu Item) from menu if user Role is other than Admin.
    Forum Post Jan 21, 2012
    Hi Sergey, I don't get your following instruction: For your webpart, in System settings -> Check permissions use following macro (click on arrow): "{%CurrentUser.IsInRole("_notauthenticated_")|(user)michalv|(hash)e210d655afd4fc446a1801f684090d169dac16cd843f610c770f4f382a...

  • RE:*hide* webpart from specific groups
    Forum Post Feb 15, 2012
    Hello, I suggest you to create your own custom macro, which will check, if a current user doesn't belong to the special group and if does, then it returns false and you can use this macro for setting the Visible property of your static text web part. Best regards, Jan H...

  • RE:Regardng the biz form
    Forum Post Feb 28, 2012
    Hello, Could you please try a live URL without the macro? Could you please try to place the macro into a static text web part into the content property and place it on the live site so you can confirm that the macro is resolved correctly? Best regards, Boris Pocatko

  • RE:How Do I Determine if a Document Has a Certain Category Assinged to it?
    Forum Post May 30, 2012
    Hi, You can register a custom macro method which determines if a document in question is assigned to some category. For more information I would like to point you to the following article: Registering cutom macro methods. Best regards, Michal Legen

  •   ... 61 62 63 64 65 66 67 68 69 70 ...