**
and using
ContentModels = Umbraco.Web.PublishedModels
Please suggest. As i have added multiple news with parent and child pages with news and news details.
and in user interface i am trying to show in using partial view.
As per your suggestion i have changed the code and i am not getting error.
But when i am running page not getting output even pagination :(
Please check following code
Needs to implement pagination in umbraco cms v8 .. Please suggest me.
Needs to implement pagination in umbraco cms v8 .. Please suggest me.
Hi Noor,
Please can you review the logic on this article related to pagination. This also applies to Umbraco 8 although some syntax could slightly change.
https://stackoverflow.com/questions/24906410/umbraco-pagination
Please review and share your views.
Regards, Shaishav
Sure Shaishav ... I am just trying to implement and let you know Thanks
@inherits Umbraco.Web.Mvc.UmbracoViewPage
After using shared code getting attached error. Please suggest.
Since i am inherits **
Umbraco.Web.Mvc.UmbracoViewPage ContentModels.News
** and using ContentModels = Umbraco.Web.PublishedModels
Please suggest. As i have added multiple news with parent and child pages with news and news details. and in user interface i am trying to show in using partial view.
see screen shot.
Hi Noor,
Please can you check if you need Model.Content.HasValue or Model.HasValue. I think you need later.
Regards,
Shaishav
Now i am getting below error
.GetPropertyValue<T>(alias)
has been replaced by.Value<T>(alias)
in version 8.You can add following namespaces to your web.config of views folder. This will allow you to get access to above methods.
Cheers,
Shaishav
As per your suggestion i have changed the code and i am not getting error. But when i am running page not getting output even pagination :( Please check following code
@inherits Umbraco.Web.Mvc.UmbracoViewPage
@{ Layout = "webbaseTempate.cshtml"; }
Please suggest. Very exciting to see the pagination
I assume that your site doesn't have a document type called
exampleAlias
, so this line doesn't match any items:If you want a paged list of all children of any document type, this should do the job:
Thanks Steve............ Its working now. :)
Small thing, you might want to keep .Where(x => x.IsVisible()); or .Where("Visible") to skip nodes where umbracoNaviHide is checked.
is working on a reply...