Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20860

Generate AWM sheets using wiki syntax rather than HTML

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 15.3-rc-1
    • App Within Minutes
    • None
    • Unknown

    Description

      Currently the sheets generated by AWM contain html syntax such as the one below. It seems the only reason to use html is the usage of dd and dt elements with specific attributes, which is not supported by XWiki syntax.

      This issue proposes to use XWiki syntax instead in AWM sheet generator, since it's easier to customize for developers than html. This would require to update editableProperty.js as well.

      {{html wiki="true" clean="false"}}
      <div class="xform">
        <dl>
          <dt #if (!$editing && $hasEdit)
              class="editableProperty"
              data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('title')))"
              data-property-type="object"#end>
            <label#if ($editing) for="XWiki.Quiz.QuizClass_0_title"#end>
              $escapetool.xml($doc.displayPrettyName('title', false, false))
            </label>
          </dt>
          <dd>$doc.display('title')</dd>
      [....]
      {{/html}}
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: