I have found out to place a listview in the documenttype in Umbraco 7, and it's a really awesome feature, but... I can't find out to turn off the nodes shown in the content tree, so it only shows the nodes in the listview.
Can anyone help me in the right direction and is it even possible?
When you create a new document type, you have the possibility to choose that every page under it is in list view. Go to "Structure" under the parent document type and choose to activate "Enable list view". Now, no tree fold out is shown anymore :)
Anyway. What I would recommend you to do is bring the idea to the following forum http://our.umbraco.org/forum/core/general. I actually think it's a good idea you have there - to have some kind of xpath filter to control which document types that will show in listview and which one that should show in a treeview.
I Managed to do it with the rbcContainerDocumentType, its good for long list of documents which you dont want to see in the tree view, like you dont see the files on windows explorer folders tree... so in order to do it all you need is a little css an c#:
just change the style in Umbraco\Plugins\uChildList\uChildListInjectCss.js to this: .leaf-override ul>li {display: none !important;} .leaf-override ul li.leaf-override {display:block !important;} /*.leaf-override { background: none !important; }*/
and create a class in app_code which implements IApplicationEventHandler, IApplicationStartupHandler with the following code: public void OnApplicationInitialized(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{ Umbraco.Core.Services.ContentService.Created += ContentService_Created;
}
the listview feature in the umbraco backend is awesome!
But how do i display the listview in a template, so i can see it in the frontend website?
I should be able to access the property by its alias "layout" and then get the columns for example. How do i get the columns?
var layout = CurrentPage.Content.GetProperty("layout");
var columns = layout.Columns;
Listview in Umb7
Hello everybody :)
I have found out to place a listview in the documenttype in Umbraco 7, and it's a really awesome feature, but... I can't find out to turn off the nodes shown in the content tree, so it only shows the nodes in the listview.
Can anyone help me in the right direction and is it even possible?
/Niels
Okay, found it myself.
When you create a new document type, you have the possibility to choose that every page under it is in list view. Go to "Structure" under the parent document type and choose to activate "Enable list view". Now, no tree fold out is shown anymore :)
Is there a way to use both tree and listview but define some document types that will only be shown in the listview and not in the tree
Hi Moshesa,
No, not as a standard anyway as it look. I have used Matt's http://our.umbraco.org/projects/backoffice-extensions/rbccontainerdocumenttype for projects on Umbraco 6.x. Here you can set up which document types you want to show in a listview.
Anyway. What I would recommend you to do is bring the idea to the following forum http://our.umbraco.org/forum/core/general. I actually think it's a good idea you have there - to have some kind of xpath filter to control which document types that will show in listview and which one that should show in a treeview.
Kind regards,
Niels
Looks like a very good package, I will try it out, thanks.
Hello Niels,
Moshesa!
Did you get it to work in V7?
That functionality definitely would be awesome in the Umbraco Core.
Hi Johan,
Sorry but I didnt even try... I'm still using 6.1.6
vote for this issue for Umbraco7 http://issues.umbraco.org/issue/U4-4635
Hello,
the listview feature in the umbraco backend is awesome!
But how do i display the listview in a template, so i can see it in the frontend website? I should be able to access the property by its alias "layout" and then get the columns for example. How do i get the columns?
is working on a reply...