Uploaded image for project: 'Page Relations Application'
  1. Page Relations Application
  2. PAGEREL-11

pagerelations macro displays an error in inline edit mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1
    • 1.0
    • None
    • Unknown

    Description

      When using the page relations macro on a sheet of an application , in a velocity macro, when editing such a page in inline mode (form mode), the page relations macro displays an error:

      Failed to execute the [html] macro. Cause: [When using the HTML macro inline, you can only use inline HTML content. Block HTML content (such as tables) cannot be displayed. Try leaving an empty line before and after the HTML macro.]. Click on this message for details.">WebHome' size='1' type='text'/&gt;&#123;&#123;/html}}</a>
      </span><span class="separator">[</span><a href="/xwiki/wiki/testrelations/view/PageRelations/Code/UI?xaction=delete&amp;page=Meeting.Test meeting one&amp;page-relation=%26%2334%3Binput%26%2334%3B%7D%20%29%27%20class%3D%27suggested%27%20id%3D%27PageRelations.Code.PageRelationClass_0_page%27%20name%3D%27PageRelations.Code.PageRelationClass_0_page%27%20value%3D%27Sandbox.WebHome%27%20size%3D%271%27%20type%3D%27text%27%2F%3E%7B%7B%2Fhtml%7D%7D&amp;direct=false&amp;xredirect=%2Fxwiki%2Fwiki%2Ftestrelations%2Fview%2FMeeting%2FTest%2520meeting%2520one%23xPageRelations" class="page-relation-tool page-relation-delete" title="Delete this relation from the page">X</a><span class="separator">]</span></span>
      </li>
      <li class="page-relation-tool page-relation-add"><a href="/xwiki/wiki/testrelations/view/PageRelations/Code/UI?showRelationAddForm=true&amp;page=Meeting.Test meeting one#xPageRelations" title="Add relation">[+]</a></div></li>
      </ul>
      </div>
      {{/html}}
      

      I tested it on the meeting application, by editing the sheet of the application and adding the pageRelations macro on top of the page, inside the velocity macro but before the html macro.

      {{include reference='Meeting.Macros' /}}
      
      {{velocity}}
      
      {{pagerelations showTitles='false' /}}
      
      {{html wiki='true'}}
      #set($discard = $xwiki.ssx.use('AppWithinMinutes.ClassSheetGenerator'))
      ...
      

      Also, as part of this issue, we should audit the behaviour of the pageRelations macro in inline edit mode and potentially mute it if it's functioning is not correct in inline mode.

      Attachments

        Activity

          People

            slauriere slauriere
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: