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;
I just had a quick look into this and the property doesn't come through to the front end of the website. It is always null. But the good news is that the data you want is available.
The contents of the list view are child pages which you can get by using "CurrentPage.Children" You should then be able to build the page that you want with that information.
Hello!
I get content by var itemNews = UmbracoContext.Current.PublishedContentRequest.PublishedContent.Children;
I want show content to 2 column (column left and column right). Please help me!
ListView Properties: Display columns
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?
Thank you
Hi,
I just had a quick look into this and the property doesn't come through to the front end of the website. It is always null. But the good news is that the data you want is available.
The contents of the list view are child pages which you can get by using "CurrentPage.Children" You should then be able to build the page that you want with that information.
I hope that helps.
John
Hello! I get content by var itemNews = UmbracoContext.Current.PublishedContentRequest.PublishedContent.Children; I want show content to 2 column (column left and column right). Please help me!
is working on a reply...