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

Forward Port - Make MirrorTemplatePlugin more extensible

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.0.1, 14.1.0
    • None
    • None
    • 0.5
    • Turing
    • Turing & Tiger Sprint 225, Turing & Tiger Sprint 226

    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

              Unassigned Unassigned
              abogaart Arthur Bogaart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: