{* HEADER *}
{include file="CRM/common/formButtons.tpl" location="top"}
{* FIELD EXAMPLE: OPTION 1 (AUTOMATIC LAYOUT) *} {foreach from=$elementNames item=elementName}
{$form.$elementName.label}
{$form.$elementName.html}
{/foreach} {if $form.title.value != ""} {php} if(isset($_REQUEST['id'])) { $wid_id = $_REQUEST['id']; $data = CRM_Wci_BAO_Widget::getWidgetData($wid_id); $template = CRM_Core_Smarty::singleton(); $template->assign('wciform', $data); if($data["override"] == 0) { $template->template_dir[] = getWciWidgetTemplatePath(); $wcidata = $template->fetch('wciwidget.tpl'); } else { $wcidata = $template->fetch('string:' . base64_decode($wid_page[$dao->id]['custom_template'])); } $widget_controller_path = getWciWidgetControllerPath(); $extension_root_path = getExtensionRootPath(); } {/php}
Preview Widget and Get Code
Click Save & Preview to save any changes to your settings, and preview the widget again on this page.
Add this widget to any web page by copying and pasting the code below.

ยป Select Code
{/if} {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT)
{$form.favorite_color.label} {$form.favorite_color.html}
{* FOOTER *}
{include file="CRM/common/formButtons.tpl" location="bottom"}