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

Create a macro to display a UI which allows adding/removing new objects for a wiki page in edit mode (inline editor)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 4.2-milestone-1
    • None
    • Unknown

    Description

      The macro should be similar to the one used editObject.vm:

      #**
       * Display a control for adding an object of a given class
       *#
      #macro(displayAddObject $class)
        <div id="add_xobject_${escapetool.xml($class.name)}" class="add_xobject">
          <div id="add_xobject_${escapetool.xml($class.name)}_title" class="add_xobject-title">
            <a href="$doc.getURL('edit', "xpage=editobject&amp;xaction=addObject&amp;className=$escapetool.url(${class.name})&amp;xredirect=$escapetool.url(${doc.getURL('edit', 'editor=object')})")" class="xobject-add-control" title="$msg.get('core.editors.object.newObjectForClass.tooltip', ["#cleanClassname(${class.name})"])">$msg.get('core.editors.object.newObjectForClass', ["#cleanClassname(${class.name})"])</a>
          </div>
        </div>
      #end
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oana.tabaranu Elena-Oana Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: