• RE:css list menu webpart
    Forum Post Mar 7, 2011
    I have written a macro and placed that inside the css list menu Content - Path as {% ProcessCustomMacro("leftnavgroup", "") %}. The macro executes fine and returns the right path back also but nothing gets displayed. Before replacing the path with macro, it was like /page/...

  • Macro's
    Forum Post Mar 16, 2011
    Is their a way to set a default parameter using a macro or maybe a better way of doing this. I have a multi culture site and use the {?lang?} querystring macro to populate the where condition on my repeater to grab the culture when a link is clicked but English is default and...

  • RE:Macro OR and AND
    Forum Post Mar 25, 2011
    Hi, Unfortunately, there is not AND or OR functionality in context macros. You could create a custom macro, where you can implement requested functionality easily. To get a document name in your custom macro, you could use code: string name = CMSContext.CurrentPageInfo...

  • RE:Custom macro for "Select top N documents"
    Forum Post Apr 27, 2011
    Hello, regarding the Custom macro, you need to create it different way in ~/App_Code/Global/CMS/CMSCustom.cs class and call different way as described in our Developer's Guide: Macro expressions Hope this helps. Best regards Ondrej Vasil

  • RE:Custom macro for "Select top N documents"
    Forum Post Apr 27, 2011
    Thank you Ondrej for the reply. I have tried the custom macro approach but have not been successful. My macro code is (for testing I'm just returning a fixed number) ... case "setnewsitemcounttodisplay": match = true; result = "4"; break; ... ...

  • RE:Custom macro for "Select top N documents"
    Forum Post Apr 28, 2011
    Hello, That exact macro works for me. Actually, the Top N property accepts the integer value, therefore you need to use the macro editor (a gray triangle) and insert your macro expression. Give it a shot please. Best regards Ondrej Vasil

  • RE:Custom macro for "Select top N documents"
    Forum Post Apr 28, 2011
    I truly appreciate the guidance Ondrej but this is still not working. I used the gray triangle, selected a custom macro, entered my expression ('SetNewsItemCountToDisplay') and pressed Insert Macro (the code then appeared in the editor) and then pressed OK. Is there a way for ...

  • RE:Nested Macros not resolving
    Forum Post May 25, 2011
    Hello, I am sorry, that the macro documentation isn't up to date. However, nearly all the macro parameters are explained in the following article. We are making some changes to the macro engine into the 6.0 version so hopefully there will be also a revision of the documenta...

  • RE:Use macro to get top level document name
    Forum Post Jul 27, 2011
    Sweet, thanks Ivana!

  • RE:Macro to check if user is logged in
    Forum Post Sep 2, 2011
    Sweet, that worked! Thanks Radek.

  •   ... 31 32 33 34 35 36 37 38 39 40 ...