{"action":"created","comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/28308693","id":28308693,"diff_hunk":"@@ -0,0 +1,47 @@\n+Presentation\n+============\n+\n+Contents are the heart of a CMS. In Open Orchestra Contents are typed, which means that every content has meaning, that it belongs to a family: an \"Article\" content is different from a \"Customer\" content.\n+For example, an article requires to contribute a title, a teaser, a picture and a text, when a customer recquires instead a name, a first name, an email address and a phone number.\n+Open Orchestra offers a RAD approach of the Content Types that does not need to write any code for this part: from the description of the Content Type to Content editing forms through storage in the database, everything is supported natively.\n+\n+\n+Listing\n+=======\n+\n+The list of existing Content Types is available in Administration part, under the Content Type entry. This list includes a row per Content Type and indicates its internal id, its name in the language of the Back Office, the number of the most advanced version as well as the status of this version.\n+\n+\n+Creation\n+========\n+\n+To create a new Content Type, from the list of Content Types, click the \"Add\" button. The Content Type creation form is displayed. Let's imagine we want to define the Content Type \"Article\". We should then contribute the following fields:\n+- Content Type id: that unique identifier allows Open Orchestra to distinguish our \"Article\" among others Content Type. Simply indicate \"article\"\n+- Name in all the languages: this is the name of the Content Type, displayed to contributors. It must be translated into the different languages ​​of the Back Office. Let's say \"Article\" for both English and French\n+- Status: determines the status in which to create the Content Type. Let's choose \"draft\" for this first version.\n+\n+These three fields are systematically required when creating a Content Type, and identifies it among the others, but they do not characterize so far our \"Article \" Content Type. It remains to indicate that an item includes a title, a teaser, picture and text.\n+This is done by individually adding each of these attributes.\n+To add an attribute, click the \"Add field\" button. A new form box appears, specific to the first attribute, in our case the \"title\" of our \"Article\" Content Type.\n+- Field id: internal identifier, unique among all the attributes composing the Content Type. It is through this that Open Orchestra distinguishes the title of the article from its image for example. Simply indicate \"title\"\n+- Label: the name of the attribute visible in the \"Article\" edit form. This label has to be translated into every language of the Back Office. Indicate \"Title\" in English and \"Titre\" in French.\n+- Default value: The default value of this attribute in the \"Article\" edit form. It would not have no sense to give a default title to our articles, so leave this field empty.\n+- Searchable: whether this attribute should be indexed by the internal search engine. For example, it would be useful for a user of the site to find our articles by typing some part of their titles in the search box. The titles of the articles must so be indexed, so we put this value to \"yes\".\n+- Type: determines the type of the attribute. Is it a date, an image, a text line or a rich text block? In our case the title is a single line of text, so we choose \"text\". The end of the contribution of the attribute depends on the selected type. In the case of a \"text\", we need to indicate the maximum length allowed. We want short titles, so indicate, for example 50.\n+- Field required: last information to set our title. This is to indicate whether the attribute is required or not when creating an article. Indeed, it is important that each article has a title, so we indicate \"yes\"\n+\n+This procedure must be repeated for each attributes characterizing the article. So you have to click again on \"Add field\" to describe the \"image\" attribute, again for the \"teaser\" attribute and one for the \"text\" attribute.\n+Once all the attributes described, a click on the \"Save\" button saves the \"Article\" Content Type. It is then immediately possible to create articles and save them in the database.\n+\n+\n+Edition\n+=======\n+\n+To edit an existing Content Type, from the list of Content Types, click the correct \"Edit\" button. The form used when creating the Content Type is displayed again, and it is possible to change what must be.\n+Clicking the \"Save\" button will generate a new version of the Content Type, incorporating all changes.\n+\n+\n+Front display\n+=============\n+\n+The contents are not directly accessible in Front Office. Like everything that is visible in Front Office, the contents are displayed through blocks. See the documentation on the blocks for more informations about it.","path":"en/user_guide/content_type.rst","position":47,"original_position":47,"commit_id":"c3655a31c355fd77af39ecfb81ed0f6fe3ef4a32","original_commit_id":"c3655a31c355fd77af39ecfb81ed0f6fe3ef4a32","user":{"login":"juchi","id":3333098,"avatar_url":"https://avatars.githubusercontent.com/u/3333098?v=3","gravatar_id":"","url":"https://api.github.com/users/juchi","html_url":"https://github.com/juchi","followers_url":"https://api.github.com/users/juchi/followers","following_url":"https://api.github.com/users/juchi/following{/other_user}","gists_url":"https://api.github.com/users/juchi/gists{/gist_id}","starred_url":"https://api.github.com/users/juchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juchi/subscriptions","organizations_url":"https://api.github.com/users/juchi/orgs","repos_url":"https://api.github.com/users/juchi/repos","events_url":"https://api.github.com/users/juchi/events{/privacy}","received_events_url":"https://api.github.com/users/juchi/received_events","type":"User","site_admin":false},"body":"information","created_at":"2015-04-14T08:31:20Z","updated_at":"2015-04-14T08:31:20Z","html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/13#discussion_r28308693","pull_request_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/28308693"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/13#discussion_r28308693"},"pull_request":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13","id":33181435,"html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/13","diff_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/13.diff","patch_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/13.patch","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/13","number":13,"state":"open","locked":false,"title":"Add Content Types doc","user":{"login":"itkg-ngilain","id":6725138,"avatar_url":"https://avatars.githubusercontent.com/u/6725138?v=3","gravatar_id":"","url":"https://api.github.com/users/itkg-ngilain","html_url":"https://github.com/itkg-ngilain","followers_url":"https://api.github.com/users/itkg-ngilain/followers","following_url":"https://api.github.com/users/itkg-ngilain/following{/other_user}","gists_url":"https://api.github.com/users/itkg-ngilain/gists{/gist_id}","starred_url":"https://api.github.com/users/itkg-ngilain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itkg-ngilain/subscriptions","organizations_url":"https://api.github.com/users/itkg-ngilain/orgs","repos_url":"https://api.github.com/users/itkg-ngilain/repos","events_url":"https://api.github.com/users/itkg-ngilain/events{/privacy}","received_events_url":"https://api.github.com/users/itkg-ngilain/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-13T16:49:50Z","updated_at":"2015-04-14T08:31:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dab18cd0757e3dad73c7b6ab2d4f5bf813bbc4e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13/commits","review_comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13/comments","review_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/13/comments","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/c3655a31c355fd77af39ecfb81ed0f6fe3ef4a32","head":{"label":"open-orchestra:content_doc","ref":"content_doc","sha":"c3655a31c355fd77af39ecfb81ed0f6fe3ef4a32","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-04-10T13:19:49Z","pushed_at":"2015-04-14T08:11:47Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":328,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"open-orchestra:master","ref":"master","sha":"fd5d3a309ab9b523918e77b6c82684a1a1caa73a","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-04-10T13:19:49Z","pushed_at":"2015-04-14T08:11:47Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":328,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/13"},"issue":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/13"},"comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/c3655a31c355fd77af39ecfb81ed0f6fe3ef4a32"}}}}