4 Replies Latest reply on Nov 21, 2014 9:24 AM by pcrownov

    Hide Secret Group Creation

    muellers

      Hi,

       

      we have a Jive 5 Installation Running with a FTL Modification in socialgroup-form.ftl to hide SECRET Groups so they can not be created.

       

      We want to do the same for Jive 7.

       

      The following Code has been implemented:

       

         <div class="j-form-row j-create-group">

                              <label>

                              <@s.text name="sgroup.form.type.label"/>

                              </label>

                              <ul class="jive-form-choose-grouptype clearfix">

                              <#list groupTypes as type>

      <#if type.name != 'SECRET'>

                                  <#assign typeClass><#if type.selected>selected</#if></#assign>

                                  <li class="${typeClass} clearfix <#if type.sharable>sharable</#if>">

                                  <#-- First case, this is the selected type and it cannot be reselected -->

                                      <#if type.selected && type.disabled && groupTypes?size gt 1>

                                          <input type="radio" name="groupType" class="jive-socialgroup-type" id="jive-socialgroup-type-${type.name?html}"

                                                 value="${type.id?c}" checked="checked" />

                                      <#-- This is the selected one and it can be reselected -->

                                      <#elseif type.selected && groupTypes?size gt 1>

                                          <input type="radio" name="groupType" class="jive-socialgroup-type" id="jive-socialgroup-type-${type.name?html}"

                                                 value="${type.id?c}" checked="checked" />

                                      <#-- Option is disabled and it has not been selected OR externally accessible is checked and this isn't sharable -->

                                      <#elseif (type.disabled && groupTypes?size gt 1) || (!type.sharable && shared)>

                                          <input type="radio" name="groupType" class="jive-socialgroup-type" id="jive-socialgroup-type-${type.name?html}"

                                                 value="${type.id?c}" disabled="disabled" />

                                      <#elseif groupTypes?size gt 1>

                                          <input type="radio" name="groupType" class="jive-socialgroup-type" id="jive-socialgroup-type-${type.name?html}"

                                                 value="${type.id?c}"/>

                                      </#if>

                                      <label for="jive-socialgroup-type-${type.name?html}">

                                          <span class="jive-icon-med ${type.iconClass?html}"></span>

                                      ${type.label}<@s.text name="global.colon" />

                                          <span class="jive-form-label-desc">${type.description?html}</span>

                                      </label>

       

                                      <#if type.selectedMessage??>

                                          <p id="group-perm-warning-${type.id?c}" style="display:none">

                                              <img class="jive-icon-sml jive-icon-warn"

                                                   src="<@s.url value='/images/transparent.png' />" border="0" alt="" />

                                          ${type.selectedMessage?html}

                                          </p>

                                      </#if>

                                  </li>

      </#if>

                              </#list>

                              </ul>

                          </div>

                          <!-- END group create form: group type -->

       

       

      The "if type.name != "SECRET"" is the same as before ... the secret groups are still displayed in the Frontend for Creation .... whats wrong?