Slaven Rezić > WE_Framework-0.097_03 > we_export_content

Download:
WE_Framework-0.097_03.tar.gz

Annotate this POD

Source  

NAME ^

we_export_content - export content to be imported with we_import_content

SYNOPSIS ^

     we_export_content [-newlang|lang lang] [-checkonly] [-rootclass class]
                       [-dumpformat format] [-v] [-f] datasrcdir exportdir

DESCRIPTION ^

Export content files from datasrcdir (path to a we_data directory) to exportdir (which must be an empty or non-existent directory).

Additionaly to the content files a description file CONTENT.txt is created. This is a list of object ids to path names in the object database and vice versa. Use this list for identifying which content file belongs to which document in the object database.

OPTIONS

-oldlang lang

Filter export to only the specified language. Otherwise export all languages.

-newlang lang

The filtered language is marked as the new language lang. Only useful with -oldlang set.

-dumpformat format

Export the files in one of the following dump formats: XMLText or PerlDD (perl dump). Theoretically there are also the dump formats YAML and XML, but these two has to many problems to be useable for now.

-rootclass

Class of root db (default: WE_Singlesite::Root).

-v

Be verbose.

EXAMPLES ^

See "EXAMPLES" in we_import_content.

AUTHOR ^

Slaven Rezic

SEE ALSO ^

we_import_content, WE_Content::Base, YAML.

syntax highlighting: