commit f9e01b6a27fcf24893c59cc49e59eb1a5cca6622
parent efdfda9525c168c4948fc9c70c98fec0eb2c8a15
Author: dankert <devnull@localhost>
Date: Tue, 12 Jan 2010 01:14:39 +0100
Weitere Konfigurationseinstellungen für Content-Negotiation.
Diffstat:
1 file changed, 39 insertions(+), 0 deletions(-)
diff --git a/config/publish.ini.php b/config/publish.ini.php
@@ -5,10 +5,33 @@
; 'false': File names are generated by OpenRat only.
edit=true
+
; filename for the first object in a folder.
; Default is 'index'.
default=index
+
+; File naming conventions
+; See http://httpd.apache.org/docs/2.0/content-negotiation.html#naming
+; '{filename}{language_sep}{language}{type_sep}{type}' means 'foo.en.html'
+format = "{filename}{language_sep}{language}{type_sep}{type}"
+
+
+; Seperators, mostly you will use '.'
+language_sep = "."
+type_sep = "."
+
+
+; 'always': language name is always appended to the filename
+; 'auto' : language is appended if there are at least 2 languages
+filename_language = auto
+
+
+; 'always': type is always appended to the filename
+; 'auto' : type is appended if there are at least 2 project models
+filename_type = always
+
+
; Filename Mode. Only used, if edit=false or no filename is set for an object.
; 'ss' : nice hack for lamers which like storyserver urls like '0,1513,453556,00.html'
; 'id' : simply use the object id.
@@ -23,6 +46,22 @@ style="id"
url=relative
;url=absolute
+
+
+; Content-Negotiation as defined in RFC 2295.
+; These settings are only considered, if the project setting "use content negotiation" is switched on.
+[negotiation]
+
+; if 'true', then the mime-type is omitted in the URL for page links.
+page_negotiate_type = true
+
+; if 'true', then the language is omitted in the URL for page links.
+page_negotiate_language = true
+
+; if 'true', then the mime type is omitted in the URL for file links
+file_negotiate_type = true
+
+
[project]
; Default publish directory. The edited target directory is appended.