ASPX templates
Version 4.x > ASPX templates > 'global' document type View modes: 
User avatar
Member
Member
rookie07 - 7/24/2009 3:19:18 AM
   
'global' document type
hello,

i'm experimenting with kentico and try to achive some kind of portal-site. this means i've got a few teasers on the start-page which should link to different contents. to achive thsi i've creaed a few document types, hierarchically i created them under my home directory which is my homepage.
so the question is how am i able to create for example a document type under the root and it will be visible on any page i navigate to? so to speak a global teaser...if there is a possibility to do that can i hide them on some pages too?

thank you!

User avatar
Member
Member
rookie07 - 7/25/2009 2:20:27 AM
   
RE:'global' document type
ok, it seems it has to do something with the repeater and its path property. if i set the Path="\%" i can see the document type on every page.

now the question is, how can i dsable it on speizial sites? that means i have to make a list of site-urs or names an set the path of the repeater programmatically...perhaps there is a better way?

thanks!

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/27/2009 9:53:13 AM
   
RE:'global' document type
Hello,

Well, I'm not quite sure from your description what do want to achieve. However basically for repeater you need to specify path, transformation and document type, you want to show. Please see more details in our Developer's Guide: http://devnet.kentico.com/docs/webparts/Kentico_CMS_WebParts.htm#_0384da9a-d259-4919-8d89-0521262a3713

If you want to show repeater only on certain pages (which are based on particular document types) you can use 'Show for document types' property with advantage.

If it doesn't meet your needs please provide us with detailed scenario, what you want to obtain.

Best Regards
Ondrej Vasil