Site structure
Version 5.x > Site structure > What is the best way to use the document type "Article"? View modes: 
User avatar
Member
Member
JohnSD - 7/21/2010 5:09:37 PM
   
What is the best way to use the document type "Article"?
I have a US map of the 50 states, and each state has specific content that needs to appear when they are individually clicked. I DON'T need any menu items for this, I only need links to the content. So I thought the most efficient way would be to put the content in "Article" doc types, then I could map each article URL onto the US states image with a JS overlay (or other JS library solution).

In my opinion, using "Page (menu item)" doc types for this would be overkill since I'll never be mapping these links to any menu items. I'm assuming more resources would be allocated to "Page (menu item)" doc types, than "Article" doc types.

However, I can't seem to find any documentation on how to get "Article" document types to show up on "Page" document types. I don't need a list of articles, I simply need the content from the articles.

Should I be using the "Blog" doc type instead?

User avatar
Member
Member
Homer J. Simpson - 8/8/2010 1:17:31 PM
   
RE:What is the best way to use the document type "Article"?
Hey,

for displaying articles, you need to use some displaying web part such as repeater. You can find many of them used on the sample corporate site. You will need to use transformations. If your not familiar with them, check this topic out:
http://devnet.kentico.com/docs/devguide/index.html?writing_transformations.htm

One more thing.. You can also use a custom document type that will fit your needs the best. See http://devnet.kentico.com/docs/devguide/index.html?defining_a_new_document_type.htm for more details.


Cheers,
HJS

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 8/11/2010 2:02:36 AM
   
RE:What is the best way to use the document type "Article"?
Hi,

It is definitely up to you where you would store your links, but I would recommend you to create new document for example of document type Article or any custom document type for each of your states. Then you can create custom web part in which you can use our API to get data from your documents:

http://devnet.kentico.com/docs/devguide/selecting_nodes.htm

Then you can perform additional processing with this data according your needs.

Best regards,
Miroslav Remias