Could you add some more details? What type of paging are you talking about? Do you have a link or screenshot of an example you are trying to implement? What factors are you considering when you think of the "best way" (e.g., performance)?
The paging I would like to have is something like the following:
| 1 | | 2 | | 3 | | 4 | ... | 50 |
each page number is a colored box. What I want is a really simple solution for paging. When I say best way is more about the simplest method to implement.
I believe (although I may be incorrect) that there are snippets in Umbraco for Paging. I would check in the Partial View Macros when you try to create a new one.
I have a list of products to display in my page, and want to add paging to it, that it!
So with Bootsrap I dont need to do much with Umbraco right? But its not possible to have dynamic paging with bootstrap right? You just create the pages and put the href link in each page of the paging. I would like to have a dynamic paging.
As far as Umbraco goes, it's pretty typical. Render out a list of "pages" (i.e., numbers"). Each would be a link with a query string indicating the page (e.g., "?page=3"). Set an active class on one of the based on the current page in the query string.
If you have any issues writing the code for this, write a reply here with the code you are using and we'll assist as necessary.
And I got this error: c:...\umbraco\Views\Partials\Work.cshtml(5): error CS1061: 'Lecoati.LeBlender.Extension.Models.LeBlenderModel' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'Lecoati.LeBlender.Extension.Models.LeBlenderModel' could be found (are you missing a using directive or an assembly reference?)
Since it seems you are using a strongly typed model of type LeBlenderModel, your model would no longer have a Content property on it. You would need to access data from the LeBlenderModel.
Paging in Umbraco
Hello guys,
how's the best way to create paging in Umbraco? Can I apply the paging system to the pages of my choice?
Thank you very much!
Could you add some more details? What type of paging are you talking about? Do you have a link or screenshot of an example you are trying to implement? What factors are you considering when you think of the "best way" (e.g., performance)?
The paging I would like to have is something like the following:
| 1 | | 2 | | 3 | | 4 | ... | 50 |
each page number is a colored box. What I want is a really simple solution for paging. When I say best way is more about the simplest method to implement.
Thank you for your answer!
Hi Nelson,
I believe (although I may be incorrect) that there are snippets in Umbraco for Paging. I would check in the Partial View Macros when you try to create a new one.
Already searched but don't seem to find an updated one, the ones I found out are deprecated.
Still not sure what your question is. Are you paging search results?
As far as rendering out a pager, here's how it's done with Bootstrap: http://getbootstrap.com/components/#pagination
There's nothing particularly special about doing that in Umbraco, but it depends on what in particular you are paging.
I have a list of products to display in my page, and want to add paging to it, that it! So with Bootsrap I dont need to do much with Umbraco right? But its not possible to have dynamic paging with bootstrap right? You just create the pages and put the href link in each page of the paging. I would like to have a dynamic paging.
Thanks for your answer!
As far as Umbraco goes, it's pretty typical. Render out a list of "pages" (i.e., numbers"). Each would be a link with a query string indicating the page (e.g., "?page=3"). Set an active class on one of the based on the current page in the query string.
If you have any issues writing the code for this, write a reply here with the code you are using and we'll assist as necessary.
I've found a snippet, but I'm having some errors because I'm using LeBlender for my grid editors. Here's my code:
}
And I got this error: c:...\umbraco\Views\Partials\Work.cshtml(5): error CS1061: 'Lecoati.LeBlender.Extension.Models.LeBlenderModel' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'Lecoati.LeBlender.Extension.Models.LeBlenderModel' could be found (are you missing a using directive or an assembly reference?)
Anyone can help please?
Since it seems you are using a strongly typed model of type LeBlenderModel, your model would no longer have a Content property on it. You would need to access data from the LeBlenderModel.
is working on a reply...