• RE:Default dynamic value in BizForm
    Forum Post May 4, 2011
    Hi, I am sorry for the confusion, I used wrong macro. You should use this one: {%cmscontext.currentdocument.documentpagetitle|(user)michalv|(hash)04c5e1bed71d37b9b62cfdc58d26d73c96d8ca97c2e4e7402da3862d99445d8c%} Also, please make sure that the page where the bizform ...

  • RE:Show webpart only on Homepage?
    Forum Post Jun 3, 2011
    Hello, Of course. The following macro should work: {%if (currentpageinfo.documentname == "Home") { "true" } else { "false" }|(user)michalv|(hash)60f146b83561787cf4d96fc41da3d498a77356698595a47099ac45459e8268a1%} In this case the name of the homepage is Home. You can f...

  • RE:Hiding Web Parts on Specific Page using Custom Macro
    Forum Post Jul 1, 2011
    I am having trouble with hidden a webpart when using a custom macro I have a custom macro {% ProcessCustomMacro("IsNotDefault", "") %} which the results is "true" or "false" in the CMCustom.cs: case "IsNotDefault": match = true; if(!Get...

  • RE:Macro to check if user is logged in
    Forum Post Sep 2, 2011
    Thanks Marcello! I'll use this for those webparts without "Display to roles" properties. Regards, Giuliano

  • RE:Using macro on VisualStudio.
    Forum Post Oct 5, 2011
    i resolved my problem using this : CMS.CMSHelper Example: CMS.CMSHelper.CMSContext.CurrentPageInfo.NodeAliasPath So it can be helpful for someone else

  • RE:Using macro in WHERE field
    Forum Post Oct 12, 2011
    Hi, Please try removing quotes from Newstag value i.e 2 so it NewsTag = 2 {%if (cmscontext.currenttemplate.pagetemplatecodename == "deleteMe01") { "NewsTag = 2 " } else { "" }|(user)michalv|(hash)b651f8e0fd3b783469cd37f98403fa5215adb449a77ea3421ed7202229c93cd7%}

  • RE:Using macro's in layouts
    Forum Post Dec 23, 2011
    Hi, If you use ASPX layout you can add any .net controls. that include <%# CMSContext.CurrentDocument.NodeAlias %> Francois

  • Registering Custom Macros
    Forum Post Jan 12, 2012
    I have created and successfully registered a custom macro. I am using it to determine whether a WebPart should be displayed or not by using it in the ‘Visible’ property of the WebPart. The macro appears in the autocompletion box and successfully hides or shows the WebPart ...

  • Month Comparison Macro
    Forum Post Jan 19, 2012
    I'd like to create a macro in the Visbility of a webpart to set the visibility if the Month # is 1-4. Simple logic in C# would be: if (Now.Month >= 1 && Now.Month <=4) { // do my work } How do I get that similar syntax in a macro without creating a custom macro? I...

  • RE:Macro in BizForm Autoresponder
    Forum Post May 1, 2012
    Hi, You would need to create a custom macro in which you can access fields that user has submitted and based on the value of the first name, you can return any text you need. You can use the following code in the custom macro to get the first name: IDataContainer data = ...

  •   ... 51 52 53 54 55 56 57 58 59 60 ...