• RE:Adding custom fields into RegistrationForm web part
    Forum Post Jun 4, 2010
    Hello. I suppose you used this macro {%usercity%} manually, not selected from Data selector in macro resolver. Unfortunately, this approach does not work for custom other, than defined fields in data selector, so if you want to return any other value, you need to use custom...

  • RE:Insert date in static html webpart or template layout
    Forum Post Jun 22, 2010
    Hello, You can create custom macro for that purpose, which is described here in our Developer's Guide: http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm You can grab exactly the code from there and use it like this: {#CurrentTime#} This cus...

  • RE:Changing Document Title Prefix Within Site
    Forum Post Jul 26, 2010
    Hi, You can add a page title for each document manually in its Properties tab -> Metadata section in CMS Desk. Or, you can use macro expression as well as you can create custom macro for this purpose which ill fit your need. Best regards, Juraj Ondrus

  • RE:Publish To and From Dates in Webparts
    Forum Post Aug 19, 2010
    Hi, you can create your custom macro that will compare actual time with preset time and return bool value. Than in Properties of webpart (in Visibility part) insert this macro code: {% ProcessCustomMacro("your_custom_macro_name", "") %} Best regards, Ivana Tomanickova

  • RE:Question about breadcrumb???
    Forum Post Oct 26, 2010
    Hello, you could use a custom macro in Separator property. The macro could check current mode (you can use CMSContext class to check it) and return the appropriate string for Separator property. Best regards, Helena Grulichova

  • RE:Adding code in "HTML envelope"
    Forum Post Nov 18, 2010
    Hello, you could create a custom macro which can contain the condition about current context and can return the appropriate HTML code. Please see the Macro documetation for more details. Best regards, Helena Grulichova

  • RE:can i use invoice custom macro in ecommerce email templates?
    Forum Post Nov 25, 2010
    I answer to myself... I found that to use in the ECommerce email template the macro describe for the Invoice, i have to write them like this : Invoice : ##PRODUCTLIST## Email : {%PRODUCTLIST%} Somebody know why? Anyway, i have another problem These macro use somm...

  • RE:Smart Search Filters and Attachments
    Forum Post Nov 26, 2010
    Hi, You will need to use custom macro in the where condition, where you will read the numeric value from the query string parameter (index) and in the code of the custom macro, in some SWITCH or IF statement you will convert this value to logic value which will fit the WHER...

  • RE:Macro's
    Forum Post Mar 23, 2011
    Hello, I would recommend you to check this article about macros. You can also try to use the "(default) " keyword in the macro, for example: '{?parameter|(default)2001-01-01?}' This displays the date "2001-01-01" if the parameter is null. Best regards, Boris Pocatko

  • Macro OR and AND
    Forum Post Mar 25, 2011
    If I am creating a macro such as this to control the visibility of a web part... {%if (cmscontext.currentpageinfo.documentname == "About Us") { "false" } else { "true" }|(user)michalv|(hash)0310a1c4424853ff6d4e8d03b9ee9a4c00963508f4d9aa375c11828270ddbddd%} How can I spec...

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