Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12422

Make MirrorTemplatePlugin more extensible

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 13.4.1
    • Fix Version/s: 13.4.2
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0.5
    • Flagged:
      Flagged
    • Processed by team:
      Turing
    • Sprint:
      Turing & Tiger Sprint 224

      Description

      • add public getter for fragment:

      public Fragment getFragment()

      { return fragment; }
      • make #addButtons protected

      protected void addButtons()

      { addSelectButton(); addOpenButton(); addClearButton(); }
      • make #hasFilledDocBase protected:

      protected boolean hasFilledDocbase()

      { return StringUtils.isNotEmpty(getPathModel().getObject()); }
      • add wicket child element in view html

      <html xmlns:wicket="http://wicket.apache.org/">
      <wicket:panel>
      <wicket:container wicket:id="fragment"/>
      </wicket:panel>

      <wicket:fragment wicket:id="edit">
      <div class="hippo-editor-field-value">
      <div class="hippo-editor-field-value-container mirrortemplate_link" wicket:id="openLinkPickerLink"></div>
      <a class="btn btn-default btn-sm" wicket:id="select">
      <span><wicket:message key="select">[Select]</wicket:message></span>
      </a>
      <a class="btn btn-default btn-sm" wicket:id="open" href="#">
      <span><wicket:message key="open">[Open]</wicket:message></span>
      </a>
      <a class="btn btn-default btn-sm" wicket:id="clear" href="#">
      <span><wicket:message key="clear">[Clear]</wicket:message></span>
      </a>
      <wicket:child/>
      </div>
      </wicket:fragment>
      <wicket:fragment wicket:id="viewCompare">
      <a class="hippo-editor-field-value" wicket:id="openLink">
      <span class="hippo-editor-field-value-container">
      <span wicket:id="value">[localizedName]</span>
      </span>
      </a>
      <wicket:child/>
      </wicket:fragment>
      </html>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ksalic Kenan Salic
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: