Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Use custom maco in Editable Text webpart View modes: 
User avatar
Member
Member
anshuman.shandilya-aonhewitt - 11/2/2012 5:42:28 AM
   
Use custom maco in Editable Text webpart
I want to change text in editable textbox webpart dynamically.
e.g. The text in editable box should be "Your account balance is [$###,###]". Is there a way I can change dollar values in textbox at runtime. I am thinking to create a custom macro and use it in textbox. I am not finding a way to do it.

User avatar
Member
Member
kentico_davidb2 - 11/7/2012 2:43:44 AM
   
RE:Use custom maco in Editable Text webpart
Hello,

please follow this guide to create a custom macro:

http://devnet.kentico.com/docs/devguide/types_of_macros.htm#custom

Then, in the Editable text webpart, in Page mode, you can write something like:

Your account balance is [${% ProcessCustomMacro("CustomExpression", "") %}]

Please use the Source mode for inserting this text to avoid possible issues when copy-pasting.