ASPX templates
Version 3.x > ASPX templates > Trying to use cmstreeview View modes: 
User avatar
Member
Member
daryl.frewing-number41media - 9/8/2008 5:46:49 PM
   
Trying to use cmstreeview
My template has the following code so far:

<cc1:CMSTreeView ID="DocumentTreeView" AutoPostBack="false" runat="server" MenuItemImageUrl="" MenuItemOpenImageUrl=""
Path="/Reference-Materials/%" width="380px" Target="_blank" ClassNames="cms.file;cms.folder" OnClickAction="CheckTheDocument(this)"
CollapseSelectedNodeOnClick="True" ></cc1:CMSTreeView>

Everything works fine except one thing. I want to have the document links open in a new window, not the folder links. I would prefer that the folders not even have links but I can only seem to be able to set the root to inactive, not all folders.

Is there anyway to set all folders to inactive but leave all the documents active?

Failing that, is there any way to set the target of the folders to be "" while the target of the documents is "_blank"?

User avatar
Member
Member
Frewfrux - 9/8/2008 6:02:24 PM
   
RE:Trying to use cmstreeview
(Sorry, not sure why it double posted)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/9/2008 5:58:35 AM
   
RE:Trying to use cmstreeview
Hello,

you can try to modify the code of the site map web part and use e.g. javascript to achieve this or you can also try to use CSS list menu and style it as you want and also use javascript to achieve your needs.


Best Regards,
Juraj Ondrus