joomla-projects/joomla-cms — pull request #253 by Fedik (2014-01-11 16:28:44+00:00)
Title: UCM com_types - the Type Manager working sketch

soo here it is ... a new toy for play ;)
This pull contain a com_types component for manage the Content Types as I tried describe in the UCM google group https://groups.google.com/d/msg/joomla-ucm-pwg/Tn4PS1SAGMg/wBM7Aqg-ZoQJ

**How to install to be able to play:**
Apply this patch, then go to Extension Manager/Discover and click install.
Open the Article Content Type and click "Restore from ucm.xml" button - it will import some fields and layouts for the article content type.
Now you ready to play :)

**What there:**
### Types list:
![1 list 2014-01-11 17 16 48 1256x932](https://f.cloud.github.com/assets/1568198/1894190/4a819814-7ad7-11e3-9547-5d81a685c1cc.png)
Idea that all types provided by the specific extension, and the user can create the new based on the one of existing.
For create a new type: need select the base type and click "New".

### Type edit
![2 type edit 2014-01-11 17 16 20 1256x932](https://f.cloud.github.com/assets/1568198/1894209/38aa76be-7ad8-11e3-977d-62a36c749887.png)
Each type it just a form, form it the inputs combination.
User can change the type by on/off the field and their parameters.
The Fields combination - it is a Layout, that allow to display the content differently in different places.
The Form layout it the main layout that describe which data can be stored in this content type.
About the params "Metadata"/"Publish Options"/"Permissions" that on the screen: it whether a current content type can have a such options that will be provided by Joomla! automatically. Now I think it should not be changed by user :)

### Edit a form layout
![3 formfield edit 2014-01-11 17 19 07 1256x932](https://f.cloud.github.com/assets/1568198/1894225/30e9d752-7ad9-11e3-859f-c41da025ad30.png)
The Form Layout can be only one per Content type.
User can change almost any field characteristic that current field can have: label, validation and so on.

### Edit a display layout
![4 displayfield edit 2014-01-11 17 18 29 1256x932](https://f.cloud.github.com/assets/1568198/1894227/75b31650-7ad9-11e3-8a14-b2768ebf505f.png)
Each Content Type can have a thousand different layout for display the data.
This allow make a very flexible views.
Here is the each field can have the additional configuration for formatting the output.

The attentive reader will have noticed a strange thing like ucm.xml. What the ?
Idea is that anyone can make a new simple component by writing just a two file manifest.xml and ucm.xml .. yes just a two ;)
manifest.xm it usual thing that we have for each component.
ucm.xml - describe new Content Type: the main fields, layouts, the table where store the date, whether use some additional options like a metadata, publishing options, permissions.
and Joomla will handle it automatically :)
Simple? ;)

as there no clear vision what is UCM I hope this pull will help to make a right decisions for UCM thing ;)
happy to play!
and do not forget write own [thoughts](https://groups.google.com/d/msg/joomla-ucm-pwg/Tn4PS1SAGMg/of-pxtqWcfsJ)