README docu updated

This commit is contained in:
Frederik Loeffert 2014-02-26 16:21:44 +01:00
parent c2dbaf457d
commit 45361e4e98

View File

@ -13,24 +13,24 @@ It's up to you how you use it and which data you want to export to the server. O
All you have to do is to provide a tree of content nodes as a JSON encoded RepoNode.
| Attribute | Type | Usage |
| ------------- |:-------------:| -----:|
| Id | string | unique id to identify the node |
| Updated | int | last modification date as unix timestamp |
| MimeType | string | mime-type of the node, e.g. text/html, image/png, ... |
| LinkId | map[string]map[string]string | (symbolic) link/alias to another node |
| Handler | string | define a handler to easily control the output rendering |
| Regions | []string | define regions for multi-market websites |
| Groups | []string | access control |
| States | []string | server states |
| URIs | map[string]map[string]string | a map of unique URIs for each region and language to resolve and link to the node |
| DestinationId | string | alias or symlink handling |
| Names | map[string]map[string]string | a name for this node in every region and language |
| Hidden | map[string]map[string]bool | hide in menu specific for region and language |
| States | []string | server states |
| Groups | []string | access control |
| DestinationId | string | alias or symlink handling |
| Data | map[string]interface{} | payload data |
| Content | map[string]interface{} | ??? |
| Nodes | map[string]*RepoNode | child nodes |
| Index | []string | ??? |
| LinkIds | map[string]map[string]string | ??? |
### Tips