• can i use invoice custom macro in ecommerce email templates?
    Forum Post Nov 25, 2010
    Hi, I read in the Kentico_ECommerce_guide.pdf the following : "For your invoice and e-mail templates, you can use a whole range of pre-defined and data macros as you can find them at CMSDesk -> Tools -> Ecommerce -> Configuration -> Invoice." I try to use ##PRODUCTLIST...

  • RE:custom macro return html as a string
    Forum Post Dec 16, 2010
    Hi, Thanks for the workaround; I can reproduce your sample code But I need help to use this workaround with a more complexe custom macro here under my custom macro public static string ResolveCustomMacro(MacroResolver sender, string expression, out bool match) ...

  • RE:Custom Filter not working in the URL
    Forum Post Dec 17, 2010
    Hi, You need to set the WHERE condition property of the repeater to appropriate value. You could use for example following query macro, that takes the URL parameter category and inserts it into the WHERE condition, if there is no category parameter in the URL, value 1 will ...

  • RE:Hiding Web Parts on Specific Page
    Forum Post Jan 25, 2011
    Hello, You can create a macro which would hide the webpart if it is on a specified page. A simple example would be the following: Syntax: {%if (macro == "something") { "write_this_if_true" } else { "write_this_if_false" }%} Example: {%if (cmscontext.currentpageinfo.do...

  • RE:Visibility based on site
    Forum Post Apr 19, 2011
    Hello. Could you please consider using custom macro in proper web part´s property (e.g. Visible property) and determine site´s code-name in code-behind? You can use logic similar to: switch (CMS.CMSHelper.CMSContext.CurrentSiteName) { case "Corporat...

  • RE:Facebook Like Button
    Forum Post Jun 6, 2011
    Hello, Yes, you are right. I am sorry for the confusion. After I click on the button an error is displayed. I've checked with our developer and this code can be added either in a transformation as you suggested at first or you can create a custom macro which would generate ...

  • Use macro to get top level document name
    Forum Post Jul 26, 2011
    Hi guys, I'm building sidebar menu and I need to insert top level page name at a top of the menu as a title. How I can use macro to get this information? Closest I got is this macro that gets parent node name, but I need to get page name from top most menu in current tree (...

  • RE:Dynamic Newsletter Configuration - Is it possible to generate the subject line pulled from another document?
    Forum Post Jan 23, 2012
    Hello, Actually, the second option should work (it works on my end). Are you sure, that your custom macro doesn't return empty string? Could you please define the following macro to be sure, that the macro resolver works fine: case "hello": e.Match...

  • RE:Insert parameterise query into multiple choice select
    Forum Post Feb 7, 2012
    Hello, You can access the NodeID of the current document on the Form tab using the following query macro: {?nodeid?} and use it in the where condition of the SQL query. It is worth noting that if you are creating a new document, the macro {?nodeid?} returns the NodeID of t...

  • RE:Standard Repeater - just select articles from first child?
    Forum Post Mar 27, 2012
    Hello, I think, that this can be done only through the custom macro: Path: /Newsletters/Newsletter A/{% ProcessCustomMacro("first_child", "") %}/% And the custom macro selects the alias of the first child document in the same way, as you display the date (ORDER BY nodeord...

  •   ... 81 82 83 84 85 86 87 88 89 90 ...