Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Insert poll macro parameters View modes: 
User avatar
Member
Member
joeh42 - 8/11/2011 8:30:24 AM
   
Insert poll macro parameters
I see that the insert poll button on the toolbar uses a poll macro. Where is this macro documented?

Does this take any additional parameters to customize the poll, or do I have to develop it myself?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/12/2011 5:56:49 AM
   
RE:Insert poll macro parameters
Hi,

Control macros can be used to resolve parts of text to the inline controls. The macro is in format {^BizFormControl^} and can (usually must) contain parameters for the control in a standard way of parameterized macros, such as {^BizFormControl|(FormName)ContactForm^}. It will be resolved to inline control which will get those parameters to initialize itself.

The code of poll inline control you can find here:
~/CMSModules/Polls/InlineControls/PollControl.ascx

Using control macro you can pass another patarameter to the inline control. More information you can find in:
How to pass two parameters to the inline control

Inserting inline control directly allow you to insert only one parameter but you can parse in the inline control code. Here is an example.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
joeh42 - 8/16/2011 10:37:23 AM
   
RE:Insert poll macro parameters
Thanks!