kentico_michal wrote: In terms of the custom handler getting fired, the File import module creates standard documents of CMS.File (or CMS.Folder) document type. So, you can use custom tree node handler (
Treenode handler).
done, thanks.
kentico_michal wrote:
Do you mean that settings that are available in the Properties -> Menu -> Inactive menu item / Standard behavior do not change where you change a value of DocumentMenuItemInactive column (True/False) directly in the database?
I do. If I update the
DocumentMenuItemInactive field directly in the database via a query the Properties -> Menu still shows Standard behavour.
The treeview however, does pick up the field and doesn't create a link, as desired.
I now update these automatically via a custom treenode handler using
if (node.NodeClassName == "CMS.Folder") {
node.DocumentMenuItemInactive = true;
node.Update();
}
When done like this everything works OK.
e.g. TreeView and Properties -> Menu, shows Inactive menu.
kentico_michal wrote:
Regarding to images displayed by the TreeView control, these images are displayed based on the document type (CMS.File, CMS.News, CMS.Article etc.) instead of type of document that is uploaded in a document’s field. So, one way how to circumvent this limitation would be creating a new document type for each document you want to uplad, for example, CMS.PDF for pdf documents, CMS.DOC for office documents and so forth. Then, you can upload images you want to be shown in the TreeView control to the following folder ~/AppThemes/Default/Images/DocumentTypeIcons.
Yep, I don't think this is feasible as they are generally being bulk imported as CMS.File (about 100 at a time).
In the CMSDesk content tree the correct file type icons are shown according to the extension.
e.g. If I bulk import a bunch of word files they come into the system as CMS.File and shows in the CMS content tree with a word icon. Can this be duplicated in the treeview control?
Best regards,
Michal Legen[/quote]