Portal Engine
Version 3.x > Portal Engine > A question about custom document type View modes: 
User avatar
Member
Member
broze.zhang@gmail.com - 8/13/2008 7:49:25 AM
   
A question about custom document type

I encountered some problems when I created a custom document type.

1.When a document type is created, it will also create a table in database, so how can I insert data to these table?

2.When I insert some test data to this table, and put a repeater into a page.
After the correct configuration (you can see the attachment), there is still no data displayed in page. So could you tell me the reason??

Please help me.Thank you very much.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/13/2008 8:06:46 AM
   
RE:A question about custom document type
Hi Broze.

It is not recommend to add data manually into database. Data are stored automatically when new document of this type is added. You can also modify data of existing documents in 'Form' tab in CMSDesk -> Content section. Then you can configure repeater to display documents of your type from given path. I would recommend going through tutorial for more details, especially following pages:

http://www.kentico.com/docs/tutorial/overview3.htm
http://www.kentico.com/docs/tutorial/defining_a_new_document_type.htm
http://www.kentico.com/docs/tutorial/writing_transformations.htm


However, if you want to add the data programatically, you are able to use our API. Please see http://www.kentico.com/docs/devguide/api_overview.htm and following pages, especially "Managing documents" sections for details and examples.

Regards,
Zdenek Cetkovsky