![]() ![]() ![]() |
RAMADDA User Guide
|
<user home>/.ramadda/plugins/somenametemplate.htmlAny plugin file that ends with "template.html" is loaded by RAMADDA as a template.
In the template are a set of properties. You should change the id and name property. There are a number of other macros shown as ${macro} that are used to instantiate a web page. See the above example template for more information.
You can see many examples of templates at the at the SourceForge SVN site.
This file was created from a directory tree:
exampletemplate exampletemplate.html htdocs exampletemplate template.css banner.jpgThe jar file is created with:
mac:jar -Mcvf exampletemplate.jar exampletemplate adding: exampletemplate/(in = 0) (out= 0)(stored 0%) adding: exampletemplate/exampletemplate.html(in = 1406) (out= 595)(deflated 57%) adding: exampletemplate/htdocs/(in = 0) (out= 0)(stored 0%) adding: exampletemplate/htdocs/exampletemplate/(in = 0) (out= 0)(stored 0%) adding: exampletemplate/htdocs/exampletemplate/banner.jpg(in = 55020) (out= 52006)(deflated 5%) adding: exampletemplate/htdocs/exampletemplate/template.css(in = 3680) (out= 1139)(deflated 69%)Note: if you don't have jar installed (it is part of the Java release) then you can just zip the file and call it something.jar.
The template.css and banner.jpg files are in a directory (exampletemplate) under the htdocs directory so they can be referenced in the html as:
<link href="${root}/exampletemplate/template.css" rel="stylesheet" type="text/css" media="screen">
ramadda.html.template.default=<your template id>You can set this in a plugin .properties file or you can specify this property (and other properties as well) in the Admin->Settings->Site and Contact Information->Extra Properties field.
#default: ramadda.created.display=all #never show it ramadda.created.display=none #only show it for admins ramadda.created.display=admin #only show it for logged in users ramadda.created.display=user