xwikisas / application-googleapps

Google Apps Integration
0 stars 4 forks source link

Can't embed multiple documents in one page #62

Closed CamiAndrei closed 2 years ago

CamiAndrei commented 2 years ago

Steps to reproduce:

{{drive/}}

{{drive/}}

Expected results:

Actual results:

The current workaround would be to use different pages to embed documents, then use XWiki Display Macro in the page where you want multiple documents to be embedded.

trrenty commented 2 years ago

To successfully embed two drive documents into one page, we need to assign a separate number to each macro as such:

{{drive nb="1"}}{{/drive}}

{{drive nb="2"}}{{/drive}}

Searching for a document will now return a result only for the input we sent image

After also setting a custom height to the macros

{{drive nb="4" height="200px"}}{{/drive}}

{{drive nb="5" height="200px"}}{{/drive}}

and assigning a document to the second macro, I have the following result:

image