skip to Main Content

Onedrive for Business Display for WordPress – Shortcode

[ o365_onedrive_view]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
folderid OneDrive Folder ID folderid=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X
template PHP template name to show the data template=”listv3_tpl.php”
id unique id for container id=”o365-search-result”
subfolders Show/Hide subfolders data subfolders=”yes” listv1_tpl.php
sort Sort items by column name sort=”name”
maxresults Number of items fetch from OneDrive maxresults=”5″
columns column names those needs to be fetched using api request columns= “name,size,id,lastModifiedDateTime,createdBy,folder,createdDateTime,@microsoft.graph.downloadUrl”
userbinding show data to guest or logged in users userbinding=”yes”
password Show data after entering the password password=”Test1232″

[ o365_onedrive_file ]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
file OneDrive files ID comma separated file=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X

[ o365_onedrive_folder]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
dir OneDrive folder ID dir=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X

Template customization
Plugin templates can be found here: wp-content/plugins/o365-wp-onedrive-display/templates/views
A custom template can be uploaded to theme folder also, here is the folder path: wp-content/themes/your-theme/o365-display/onedrive/views/
Please change the your-theme name with your currently active theme name.




Back To Top