How to show dedicated Razuna UI parts in your application

Razuna 1.6
This feature is available since Razuna 1.6!

How to show dedicated Razuna UI parts in your application

Developers may want to show the content of a folder or the uploader within their applications to the user. This is now possible with a direct call to the needed UI and the required parameters. Find the available “CUSTOM VIEW” features and its parameters below.

Showing the content of a folder

URL and parameters to use:

http://localhost/(razuna/)raz1/dam/index.cfm?fa=c.view_custom&api_key=(apikey)&folderid=(folderid)&showpart=folder&access=r&fileid=108

Parameters

Parameter
Value
Required
Description
Availability
fac.view_customrequiredThe action to call 
api_key(your api key)requiredThis is the same API you use for any API call 
folderid(folder id)requiredThe folder id to show content from 
showpartfolderrequired"folder" is the value here in order to show the folder content 
accessr = read (default)
w = read/write
x = full access
optionalPass in the permission you want this files in this folder to appear under. 
fileid(file id)optionalPass in a fileid or a list of fileids (separated with a comma) in order to only show the files listed. 
userid(user id)optionalPass in a user id and the view will be shows as the user. Additionally, it will also have the groups of the user assigned! 
sortbyname
sizedesc
sizeasc
dateadd
datechanged
optionalThis will sort the folder view according to your passed value. 
showsubfoldersf = false (default)
t = true
optionalShows files from subfolders 
customparamsFree structure,
JSON structure
optionalPass you own custom parameters to the view. The value will be stored in a session called "session.customparams" and can be retrieved
by the very same name. You can store any value in this parameter. For complex objects we recommend to pass a JSON structure.
1.6.5

The above URL and its given parameters allow you to show the folder content UI in any application (via iFrame or alike). Given the above this will show the below (this is a sample, your might looks differently):

image

Showing the uploader tool only

URL and parameters to use:

Parameters

Parameter
Value
Required
Description
Availability
fac.view_customrequiredThe action to call 
api_key(your api key)requiredThis is the same API you use for any API call 
folderid(folder id)requiredThe folder id of the folder you want to upload into
Instead of a folder id you can also use a "x" here and it will show the list of folder first where the user can choose the folder to upload into
 
showpartuploadrequired"upload" is the value here in order to show the upload tool 
userid(user id)optionalPass in a user id and the view will be shows as the user. Additionally, it will also have the groups of the user assigned! 
customparamsFree structure,
JSON structure
optionalPass you own custom parameters to the view. The value will be stored in a session called "session.customparams" and can be retrieved
by the very same name. You can store any value in this parameter. For complex objects we recommend to pass a JSON structure.
1.6.5

With the given URL and parameter above you will get the content of the uploader tool which you can then embed in your application as shown below:

image

Showing the search results

URL and parameters to use (Example):

Parameters

Parameter
Value
Required
Description
Availability
fac.view_customrequiredThe action to call 
api_key(your api key)requiredThis is the same API you use for any API call 
showpartsearchrequired"search" is the value here to show the search results 
searchforsearch termrequiredEnter the search term *see the search API for accepted values 
accessr = read (default)
w = read/write
x = full access
optionalPass in the permission you want the results to appear under. 
userid(user id)optionalPass in a user id and the view will be shows as the user. Additionally, it will also have the groups of the user assigned! 
sortbyname
sizedesc
sizeasc
dateadd
datechanged
optionalThis will sort the folder view according to your passed value. 
customparamsFree structure,
JSON structure
optionalPass you own custom parameters to the view. The value will be stored in a session called "session.customparams" and can be retrieved
by the very same name. You can store any value in this parameter. For complex objects we recommend to pass a JSON structure.
1.6.5

To see all possible parameters that can be used see the search API !

This UI component will show you the search results page in its own window like the one below (example):

image