Subversion Repositories oidplus

Rev

Rev 475 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
387 daniel-mar 1
 
2
About the folder "userdata/resources"
3
-------------------------------------
4
 
5
This folder is used by the plugin "publicPages/500_resources"
6
(Section "Documents and resources")
7
 
8
Its contents will be merged with "res/" from the root directory.
9
"res/" contains the default resources which are part of the OIDplus
10
main installation (you shall not change or add anything to that folder),
11
while "userdata/resources" contains resources that you add yourself
12
(e.g. your impress, privacy statement, additional resources,
13
hyperlinks to your websites and products, etc.)
14
 
15
Valid contents:
16
- Subfolders
17
- *.html files
18
- *.link files (will be converted to a hyperlink in the menu on the left)
19
- *.url files (will be converted to a hyperlink in the menu on the left.
20
               No internationalization possible, therefore deprecated!)
21
 
22
Icons:
23
	You can define custom icons for any any file or folder by placing PNG files
24
	with the following file names:
25
 
26
	Assume the ressource file <filename>.html , then the icon files are:
27
	<filename>_big.png        (Big icon in the content-pane)
28
	<filename>_big$dede.png   (German-specific icon)
29
	<filename>_tree.png       (Icon in the tree view, 16x16)
30
	<filename>_tree$dede.png  (German-specific tree icon)
31
 
32
	The same applies for folders.
33
 
475 daniel-mar 34
Redirections:
35
	In case a resource have been moved to another location,
36
	you can setup a redirection.
37
	Therefore, create a file res/redirect.ini (not recommended)
38
	or userdata/resources/redirect.ini (recommended) with a
39
	content like this:
40
 
41
		[Redirects]
42
		; Redirect a resource to an absolute URL
43
		Foobar/Test.html="http://example.com/test123.html"
44
		; Redirect a resource to a relative URL
45
		Foobar/Devices.html="/test123.html"	
46
		; Redirect a resource to a local "goto" file
47
		Foobar/Devices.html="?goto=oidplus:resources$Foobar/Manuals/Devices.html"	
476 daniel-mar 48
 
49
Securing resources:
50
	If you want that a resource is only visible to RAs or Admins,
51
	create a file res/security.ini (not recommended)
52
	or userdata/resources/security.ini (recommended) with a
53
	content like this:
475 daniel-mar 54
 
476 daniel-mar 55
		[Security]
56
		; Document is visible for all (default)
57
		rules.html=PUBLIC
58
		; Document is only visible to RAs and admins
59
		rules.html=RA
60
		; Document is only visible to admins
61
		rules.html=ADMIN
62
 
387 daniel-mar 63
Internationalization of *.html files:
64
	Title: The title is taken from the HTML headline.
65
	To create a file with multiple languages, create them like this:
66
		example.html      <-- this is the file in the default language ("enus" = English USA)
67
		example$dede.html <-- this is the file for German ("dede")
68
	Attention: The main file (without language code) needs to exist, so this is NOT possible:
69
		example$enus.html <-- DO NOT USE
70
		example$dede.html
71
 
72
Internationalization of *.link files:
73
	Title:
74
		.link files are like .url files, but they have an attribute for defining a title.
75
	The file format is like this:
76
		[Link]
77
		Title="Report a bug"
78
		URL="https://www.viathinksoft.com/thinkbug/thinkbug.php?id=97"
79
	To create an URL with multiple languages, create them like this:
80
		example.link      <-- this is the file in the default language ("enus" = English USA)
81
		example$dede.link <-- this is the file for German ("dede")
82
	Attention: The main file (without language code) needs to exist, so this is NOT possible:
83
		example$enus.link <-- DO NOT USE
84
		example$dede.link
85
 
86
Internationalization of *.url files:
87
	.url files are the normal files that can be created using Microsoft Windows.
88
	Internationalization of *.url files is not possible.
89
	Title:
90
		The title is taken from the file name.
91
	You need to create two entries which are always both visible in the menu,
92
	independent from the chosen language:
93
	- "Report a bug.url"
94
	- "Einen Fehler melden.url"
95
 
96
Internationalization of Folder names:
97
	By default, the folder title is the name of the directory.
98
	To change it, you can place a folder.ini with the following contents:
99
		[Folder]
100
		Title="Object Identifiers"
101
	For multilinguality, e.g. create folder$dede.ini for a German name
102
		[Folder]
103
		Title="Objekt-Bezeichner (OID)"
104
	Please note that the URL is always the same and exposes the real directory name:
105
		...?goto=oidplus:resources$Object Identifiers/