Category | Application |
Active Installs | 20 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Sources | Issues |
This macro connects XWiki to Office365, allowing to display and to search for office documents from OneDrive inside XWiki.
Limitations
- Only Office formats (Word, Excel, Powerpoint) can be embedded. PDF cannot because Office 365 does not provide an embed URL.
- Sharepoint documents can be embedded by URL but not searched.
Macro embed via URL
First, you can embed an Office 365 document by URL. This way of embedding does not require OAuth credentials to connect XWiki. To embed you just need to get the URL that is displayed when you view or edit an Office document on Office 365. An iframe is used to embed. You can also set width and height parameters of the iframe.
Macro embed via Search
You can embed via search. Just insert the office365 macro without any parameter and a search box will show up. You need to set OAuth credentials in the configuration for this to work (see configuration). You search and then choose the document to embed(two links, "change" and "view" are displayed for changing the embed document or viewing the document on Office365).
OneDrive search inside XWiki
If you setup OAuth credentials, activate the search UI extension in the Office 365 configuration in the XWiki administration and add the UI Extension point to the SolrSearchMacros page (see installation instructions) you will see a box showing up on the SOLR search screen of XWiki when searching. This box shows OneDrive results.
To configure the extension to be able to use the other features, you will need to get OAuth2 credentials:
Create Office 365 OAuth Credentials
You will need to create credentials on Office 365/Azure AD. This can be done either in Azure AD or on this microsoft app registration web site. It might be necessary to be an admin in the organization
It is necessary to get an Application ID (clientid), create a password (secret)
and set the redirect URI ( http://[your domain]]/xwiki/bin/view/Office365/OAuth (or https) )
Permissions need to be set on the Graph API like below:
Here are some screenshots of the checkboxes checked on the Application Registration Portal:
In case you register the key using the Azure Portal here is how the rights should look:
Enter the credentials in XWiki Administration
You will need to enter your credentials and your tenant ID (either yourorg.onmicrosoft.com or the full ID) in the Office365 section of the XWiki Administration.
Add the UI Extension point to the Main.SolrSearchMacro page
A UI Extension point needs to be added until XWIKI-14205 is integrated in XWiki.
To add the extension point locate #\displaySearchForm in the page Main.SolrSearchMacros and add the foreach/end block after it:
#foreach ($extension in $services.uix.getExtensions("org.xwiki.platform.search.widget"))
{{html clean=false}}
$services.rendering.render($extension.execute(), 'xhtml/1.0')
{{/html}}
#end
#if ($text != '')
Installation Steps
This paid extensions requires XWiki 11.10 or above. In order to install the extension, follow the next steps inside your XWiki instance (on cloud or on premise).
Navigate to the Extension Manager
In the Applications Panel click on "More Applications..." and then "Install new applications...". Alternatively navigate directly to the Administration and select the "Extensions" section.
Install the Extension
Search for the extension you wish to install and use the Install button to install it.
Get a License
Navigate to the "Licenses" section of the Administration, fill your details, look for the extension you just installed in the live table and click the buttons to get a trial license or to buy a license.
Install the License
If you have selected a trial license then you're good and there's nothing else to do. Your trial license is automatically installed.
However if you've selected to buy a license you'll be redirected to a page to perform the payment. At the end you need to come back to the "Licenses" administration section and click on the "Check for Updates" button. This will download and apply the license you bought.
Use the Extension
Start using the Extension! Refer to the extension's documentation to know how to use it.
Installing Paid Apps on Subwikis
If you want to install an application on the whole farm (main wiki + subwikis), you can do so directly from the main wiki’s Extension Manager, as seen below:
Extensions can also be installed only on a particular subwiki by global admins. Subwiki admins will not be able to install these extensions due to their limited rights.
Options
The price is per year and varies depending on the support level and the number of users.
Support / Users | 10 | 25 | 50 | 100 | 250 | 500 | 1000 | 2500 | 5000 | 10000 | 20000 |
---|---|---|---|---|---|---|---|---|---|---|---|
Silver |
Benefits
What do you get when you purchase an XWiki extension?
1 year license
By purchasing an XWiki extension license, you'll benefit from it during one year.
Free updates
You benefit from all the extension updates during one year. You are always up to date.
Support included
If you are facing an issue, you can reach the XWiki support. Our team is always available to help.
How to Buy
To buy, install this extension from inside your XWiki instance and follow the instructions.
Release notes
v1.3.7
v1.3.6
Update the Licensing dependency to version 1.13.4.
v1.3.5
Update the Licensing dependency to version 1.13.3
Update the PDF Viewer Macro dependency to version 1.9.2.
v1.3.4
Update the Licensing dependency to version 1.13.2.
Update the PDF Viewer Macro dependency to version 1.9.1.
v1.3.3
Update the Licensing dependency to version 1.13.
Update the PDF Viewer Macro dependency to version 1.8.3.
v1.3.2
Update the Licensing dependency to version 1.12.2.
v1.3.1
Update the Licensing dependency to version 1.12.1.
Update the PDF Viewer Macro dependency to version 1.8.1.
Bugs fixed:
#4 The admin configuration section is not accessible to users.
v1.3
Update the Licensing dependency to version 1.8.
Update the PDF Viewer Macro dependency to version 1.8.
Display a message when there is no valid license.
v1.2
Initial paid version.
Extension details
License
- GNU Lesser General Public License 2.1
Sources
Issues
Type
- xar
Developed by
Compatibility
- Requires XWiki 8.4 or above.
Dependencies
- com.xwiki.licensing:application-licensing-licensor-api 1.13.8
- com.microsoft.azure:adal4j 1.2.0
- org.xwiki.contrib.showhide:showhide-macro 2.0
- com.xwiki.pdfviewer:macro-pdfviewer-ui 1.9.4