• Freeshipping condition macro
    Question Sep 3, 2020
    Hi, I need a macro that could allow to exclude items (like gift cards) from free shipping offer or calculation. I tried to add to the "Further conditions" under the "Free shipping conditions" section with something like (!ShoppingCart.ShoppingCartItems.Any(SKU.SKUGUID == xxxx...

  • RE:Possible to add a parameter to link in the wysiwyg editor?
    Forum Post Feb 9, 2009
    Hi, You can add to the links some query string parameter. Then, you can use e.g. the query string macro (www.kentico.com/docs/devguide/appendix_a___macro_expressions.htm) in the WHERE condition of the web part or in your custom control - it will read the macro value and acc...

  • RE:Changing webpart configuration in templates?
    Forum Post Mar 17, 2009
    Hi, I would recommend you to create custom macro (http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm) and use this custom macro in your template layout which would generate your div tag with class according to the current alias path or according to c...

  • Repeater and Relationships NodGuid. Can't use Macro to pass a guid
    Forum Post Apr 24, 2009
    Hi, When using the out of the box repeater, it's seems imposible to pass a guid using Macro in the Relationship section. ("Display documents related to the document with NodeGUID") When I put : {?Guid?} I get the folowing error message : Please enter some Guid. Soun...

  • RE:Hide a web part by document id - use macros?
    Forum Post Aug 19, 2009
    Hi, you need to set a macro for the Visible property, it can look like this (the macr must return true/false value): {%cmscontext.currentdocument.documentname|(notequals)home|(user)michalv|(hash)f2800ad6cbe58f60f5be5a44b6c7bf1571f5c71d121ea3ad66acede43e3e26a3%} or ...

  • RE:Hide a web part by document id - use macros?
    Forum Post Aug 19, 2009
    Hello, in this case you would need to develop a custom macro which would contain a condition about current document id and return true or false according its value. The sample code of custom macro is in the article which Juraj mentioned (http://devnet.kentico.com/docs/devgu...

  • RE:Scrolling Text Web Part
    Forum Post Nov 28, 2009
    Hello, You can use custom macro to get current date in WhereCondition property of web part. You can use following code for macro: case "currentdate": match = true; result = DateTime.Now.ToShortDateString(); b...

  • Unsubscribe URL
    Forum Post Dec 4, 2009
    I have found such post: "You can try to define unsubscribe URL within the newsletter template in following format: <a href="http://YourDomain.com/SpecialPages/Unsubscribe.aspx?subscriberguid={%SubscriberGUID%}&newsletterguid={%NewsletterGUID%}&issueid={%IssueID%}">Unsubsc...

  • RE:Scrolling Text Web Part
    Forum Post Dec 6, 2009
    Hi Donal, Yes, I meant to put the expression "EventDate > '{% ProcessCustomMacro("currentdate", "") %}'" in the WhereCondition of the Configure Web Part. Please see 'Custom macros' section in 'Appendix A - Macro expressions' article in Dev.Guide for more details about h...

  • RE:E-mail Templates Template
    Forum Post Mar 15, 2010
    Hello, I would recommend you the mentioned localization macros. You may make the HTML formatting work by (encode)false parameter in that macro. Please see here: http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm for more details (Macro parameters sec...

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