Details
-
Bug
-
Resolution: Fixed
-
Major
-
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'/>{{/html}}</a> </span><span class="separator">[</span><a href="/xwiki/wiki/testrelations/view/PageRelations/Code/UI?xaction=delete&page=Meeting.Test meeting one&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&direct=false&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&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.