I need to develop functionality that contains contents like
Category -> Subcategory -> Content
Or
Category -> Content
For Example,
World News (Category)
USA (Sub Category)
USA News1 (Content)
USA News2 (Content)
Denmark (Sub Category)
Denmark News1 (Content)
Denmark News2 (Content)
Common News1 (Content)
Common News2 (Content)
I have different Document type for News Category, News sub category and content. News sub category and content are Allowed child node types of News Category.
Now I need to display subcategory ( USA and Denmark) in Tree view under World news and content in List view (Common News1 and 2 will be inside World News and USA news 1 and 2 inside USA and so for Denmark)
Is there any way to achieve this? Or any package will also be helpful.
The icons of a documenttype are shown in the first column of a listview. If you use different icons on a document type you can differentiate them by the icon.
If that's not enough you can edit the listview by clicking on custom listview. Here you can choose to add a documenttype column. This will show the documenttype alias.
Frans
Edit: Don't forget to safe your listview and than save your documenttype. the save button of the listview is in the bottom of the listview. Can be a little confusing.
Differentiate Allowed child node types
Hello,
I need to develop functionality that contains contents like
Category -> Subcategory -> Content Or Category -> Content
For Example,
I have different Document type for News Category, News sub category and content. News sub category and content are Allowed child node types of News Category.
Now I need to display subcategory ( USA and Denmark) in Tree view under World news and content in List view (Common News1 and 2 will be inside World News and USA news 1 and 2 inside USA and so for Denmark)
Is there any way to achieve this? Or any package will also be helpful.
There is no way to mix tree view and list view. You have to choose the presentation on the parent documenttype and this go's for every child.
In your case if you set World news to listview you must set sub category to list view to to be able to get to the content (e.g. USA News 2).
The other option is to have treeview on World news and have listview on Category. But than the tree will contain news 1 and news 2.
Frans
Hey Frans,
Got your point. Is there any way to differentiate both child in list view? Like children of Subcategory in Tab 1 and children of Content in Tab 2.
The icons of a documenttype are shown in the first column of a listview. If you use different icons on a document type you can differentiate them by the icon.
If that's not enough you can edit the listview by clicking on custom listview. Here you can choose to add a documenttype column. This will show the documenttype alias.
Frans
Edit: Don't forget to safe your listview and than save your documenttype. the save button of the listview is in the bottom of the listview. Can be a little confusing.
Hey Frans,
Thanks for the reply.
After some digging, i found this package Opten.Umbraco.ListView for restricting DocumentType to be displayed in a list view.
Nice, will the others remain visible in the tree?
No, I have set Enable list view to True so nothing will be displayed in the tree.
is working on a reply...