Default Folder and File Display
The default display for folders and files are defined by two wiki text templates, the outer
template and the contents template.
For example for folders the outer template is defined by the
folder.default.txt
template. The outer template defines the overall layout of the page, e.g. inner contents in the main part
of the page and properties, maps, etc, on the right hand side of the page.
The inner contents is defined by the
folder.content.txt.
The default inner contents is the wiki text:
{{description suffix="<p>"}}
{{tabletree message="" orderby="entryorder_up,name_up" maxHeight=80vh}}
For generic file entries the display is defined with the templates -
file.default.txt and
file.content.txt.
You can overwrite these templates with the following properties. The %repositorydir% is your RAMADDA home directory.
ramadda.wikitemplate.default.folder=%repositorydir%/folder.default.txt
ramadda.wikitemplate.content.folder=%repositorydir%/folder.content.txt
ramadda.wikitemplate.content.file=%repositorydir%/file.content.txt
ramadda.wikitemplate.default.file=%repositorydir%/file.default.txt
For example, if you wanted a different sort order for all Folder entries you could create a file
myfolder.txt with
{{description}}
{{tabletree message="" orderby="folder_up,entryorder_up,name_up" maxHeight=80vh}}
And then set the property:
ramadda.wikitemplate.content.folder=%repositorydir%/myfolder.txt
Note: for the case of specifying a default sort order for the entire repository
see the documentation on
sort order.
You can also override the default display of any entry type with the following property:
ramadda.wikitemplate.default.<type>=/path/to/wiki/template
For example, if you wanted change how PDF file entries are displayed you could specify the property:
ramadda.wikitemplate.default.type_document_pdf=%repositorydir%/mypdf.html
And then create the mypdf.html file in your RAMADDA home directory. The file
is just the wiki text that displays the PDF. For example, you can view the default wiki text
in the
types.xml
plugin file on Github. Look for the <wiki> tag definition for the PDF entry type.