0 Replies Latest reply on Jun 18, 2013 1:02 PM by saumil.shah

    widget props FTL template change not taking effect

    saumil.shah

      For one of my widget, I'd like to display a property using a dropdown. I have modified a template for the widget editor properties called template/global/widget-props.ftl

       

      Somehow it’s still displaying the textbox rather than the dropdown I have specified below even though the property IS called practiceUnit. Any ideas? Red highlighted text below is the change I've made to the FTL file and the one in blue is what's actually getting called I believe.

       

      <#elseif ("practiceUnit" == propName)>

                      <select name="${propName?html}">

                          <option value="C&IVT"<#if (propValue == "C&IVT")>

                              selected="selected"</#if>>C&IVT</option>

                          <option value="FS"<#if (propValue == "FS")>

                              selected="selected"</#if>>FS</option>

                          <option value="GCG"<#if (propValue == "GCG")>

                              selected="selected"</#if>>GCG</option>

                          <option value="HLS"<#if (propValue == "HLS")>

                              selected="selected"</#if>>HLS</option>

                          <option value="MTE"<#if (propValue == "MTE")>

                              selected="selected"</#if>>MTE</option>

                          <option value="OT"<#if (propValue == "OT")>

                              selected="selected"</#if>>OT</option>

                          <option value="Actuarial"<#if (propValue == "Actuarial")>

                              selected="selected"</#if>>Actuarial</option>

                          <option value="Lippincott"<#if (propValue == "Lippincott")>

                              selected="selected"</#if>>Lippincott</option>

                          <option value="NERA"<#if (propValue == "NERA")>

                              selected="selected"</#if>>NERA</option>                       

                      </select>

      <#else>

                              <#if (useLarge)>

                                  <textarea name="${propName?html}" cols="40"

                                        rows="6"><#if propValue?has_content>${propValue?html}</#if></textarea>

                              <#else>

                                  <input type="text" name="sam_${propName?html}" size="40" class="jive-widget-edit-elem-url saumil"

                                         <#if (propValue?has_content)>value="${propValue?html}"</#if>/>

                              </#if>

        </#if>