I am working with the Display Macro.
When I display a referenced page, I would like to have the inserted content in a div, eg. <div class="DisplayMacro">content of the referenced page</div>
That way, I can add CSS to display a coloured frame, or to add a Javascript event that will open the referenced page in a separate window.
I tried to copy the extension and add this additional div, and it works.
Basically, I wrap the whole output into a GroupBlock.
See the diff here:
Is this worth considering that I should create an issue and pull request for the DisplayMacro?
Our policy is to always reference an issue in the commit log (except of course of very minor commit which don’t really have a functional impact from user point of view). So yes, would be great if you could start by creating a Jira issue about that so that you can mention it in your commit/pull request.
I’m not convinced that this should be done in the Display Macro. It may even break some places where the code using the display macro doesn’t expect any wrapping. Can’t you do this from outside of the display macro:
If we add the wrapping inside the display macro (although I’m not convinced it’s a good idea) I think it should be configurable and disabled by default.