Difference between revisions of "Templates/website/submission"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
Needed information, and where to put/take it from
+
==Needed information, and where to put/take it from==
  
 
* Compatibility: with which OOo version does it work; 'Runs with OpenOffice.org 3.0 and higher'
 
* Compatibility: with which OOo version does it work; 'Runs with OpenOffice.org 3.0 and higher'
:?
+
: Taken from mime type, see below
 
* Application type: 'Writer'
 
* Application type: 'Writer'
 
:taken from extension of upload file / or from file: uploadfile::mimetype
 
:taken from extension of upload file / or from file: uploadfile::mimetype
 
:generated automatical by OOo
 
:generated automatical by OOo
 +
: Taken from mime type, see below
 
* License: 'BSD'
 
* License: 'BSD'
:taken from file: uploadfile::meta.xml::user-defined / or manual?
+
:taken from file: uploadfile::meta.xml::user-defined::License
:TODO:how to generate this information?
+
 
* Provider: 'Created by Sun Microsystems, Inc.'
 
* Provider: 'Created by Sun Microsystems, Inc.'
 
:taken from logged in user account (prefered)/ or from file: uploadfile::meta.xml::creator, would mean user data from OOo
 
:taken from logged in user account (prefered)/ or from file: uploadfile::meta.xml::creator, would mean user data from OOo
:generated by submitter, from his user account
+
:has to be inside the template metatdata:: description
* Category: 'Business'
+
* Category: 'Business' and Sub category: 'Business Correspondence'
 
:manual selection
 
:manual selection
:generated by submitter
+
:selected by submitter on submission
* Sub category: 'Business Correspondence'
+
* Name: 'Business Letter 1'
:manual selection
+
:generated by submitter
+
* Name: unique: 'Business Letter 1'
+
 
:taken from file: uploadfile::meta.xml::title
 
:taken from file: uploadfile::meta.xml::title
 
:generated by OOo/template creator: File-Properties-Description-Title
 
:generated by OOo/template creator: File-Properties-Description-Title
Line 34: Line 31:
 
:
 
:
 
* Language: in which language is the template
 
* Language: in which language is the template
:taken from file: uploadfile::content.xml::style:text-properties fo:language=
+
:taken from file: uploadfile::styles.xml::default-style:paragraph:text-properties:language=
:generated by OOo/template creator: assigning appropiate language property to text
+
:generated by OOo/template creator: defining appropiate language default paragraph style
 
:same as internal language from drupal locale; a template has just one language!
 
:same as internal language from drupal locale; a template has just one language!
 
:if user selects language for site view, he just gets templates in his language
 
:if user selects language for site view, he just gets templates in his language
 +
 +
==Template Mime Types==
 +
* Compatible since OpenOffice.org 2.0:
 +
** 'application/vnd.oasis.opendocument.text-template' => 'ott' => 'Text'
 +
** 'application/vnd.oasis.opendocument.graphics-template' => 'otg' => 'Drawing'
 +
** 'application/vnd.oasis.opendocument.presentation-template' => 'otp' => 'Presentation'
 +
** 'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots' => 'Spreadsheet'
 +
 +
==Categories==
 +
[[Templates/website/translation#Categories]]
 +
 +
 +
 +
 +
 +
[[Category:Templates]]
 +
[[Category:Template Repository]]

Latest revision as of 13:35, 22 January 2009

Needed information, and where to put/take it from

  • Compatibility: with which OOo version does it work; 'Runs with OpenOffice.org 3.0 and higher'
Taken from mime type, see below
  • Application type: 'Writer'
taken from extension of upload file / or from file: uploadfile::mimetype
generated automatical by OOo
Taken from mime type, see below
  • License: 'BSD'
taken from file: uploadfile::meta.xml::user-defined::License
  • Provider: 'Created by Sun Microsystems, Inc.'
taken from logged in user account (prefered)/ or from file: uploadfile::meta.xml::creator, would mean user data from OOo
has to be inside the template metatdata:: description
  • Category: 'Business' and Sub category: 'Business Correspondence'
manual selection
selected by submitter on submission
  • Name: 'Business Letter 1'
taken from file: uploadfile::meta.xml::title
generated by OOo/template creator: File-Properties-Description-Title
  • Short description
taken from file: uploadfile::meta.xml::description
generated by OOo/template creator: File-Properties-Description-Comments
  • Tags
taken from file: uploadfile::meta.xml::keyword
generated by OOo/template creator: File-Properties-Description-Keywords
  • Last Updated / Versioning: Date of upload
  • Preview image
generated via webservice of a StarOffice 8 Server - PDF Converter
  • Original submitter: user which is logged in
  • Language: in which language is the template
taken from file: uploadfile::styles.xml::default-style:paragraph:text-properties:language=
generated by OOo/template creator: defining appropiate language default paragraph style
same as internal language from drupal locale; a template has just one language!
if user selects language for site view, he just gets templates in his language

Template Mime Types

  • Compatible since OpenOffice.org 2.0:
    • 'application/vnd.oasis.opendocument.text-template' => 'ott' => 'Text'
    • 'application/vnd.oasis.opendocument.graphics-template' => 'otg' => 'Drawing'
    • 'application/vnd.oasis.opendocument.presentation-template' => 'otp' => 'Presentation'
    • 'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots' => 'Spreadsheet'

Categories

Templates/website/translation#Categories

Personal tools