I am a complete newbie to the world of Umbraco but coming at it with a lot of patience (more used to working on the front-end). I have been trying to add simple pagination to the news section of the TXT starter site but every forum/video I watch leads to more confusion!. Can someone help with the basic code I need to add which is relevant for this template and a brief explanation? . Many thanks!
Unfortunately there is a lot of legacy code out in the wild since there has happened a lot with Umbraco past the last 10 years so it can sometimes be confusing to figure out what a best practice for doing a certain task is. Many people have different takes on things as well so what works for one developer in a certain context might not work for you in your context because there might be some small differences.
Are you currently just playing around in order to learn some of the ins and outs of Umbraco? Or are you working on a client project? It might be a good idea to either start out fresh or start out by using the default theme "Fanoe starter kit" since it features the use of the new grid editor as well.
It might also be worth considering attending the level 1 and 2 courses to get a good introduction to Umbraco and become certified if it's a system you intend to learn and use for a long time - You can read more about that here http://umbraco.com/products/training
Many thanks. It is for a client site and everything else seems to be straightforward enough. I do hear you on the legacy code and there seems to be no up to date book available for version 7 (i'm a sucker for having a reference tool to hand). The training would be incredibly useful but geographically restricting (I'm a busy Dad of triplets living in Scotland)
But feel free to ask any further questions in here as you go since it can be a steep learning curve sometimes when starting from scratch.
Also if you go to the "Developer" section and right click the "partial view macros" folder in order to create a new macro you can choose some predefined code snippets for achieving different tasks - It might serve as inspiration to learn from. But currently there are no paging examples though.
TXT starter template and pagination
Hi,
I am a complete newbie to the world of Umbraco but coming at it with a lot of patience (more used to working on the front-end). I have been trying to add simple pagination to the news section of the TXT starter site but every forum/video I watch leads to more confusion!. Can someone help with the basic code I need to add which is relevant for this template and a brief explanation? . Many thanks!
Hi Christopher, and welcome to our,
Try to see Lee Kellher and Craig´s post in the thread. https://our.umbraco.org/forum/developers/razor/41166-Razor-Paging-snippet
Perhaps this can help you make a pagination. For learning Umbraco try to see here:http://umbraco.tv/videos/umbraco-v7/implementor/ and https://our.umbraco.org/documentation/Using-Umbraco/Creating-Basic-Site/ and http://24days.in/umbraco/2014/how-to-set-up-an-umbraco-site/
Hope this helps,
/Dennis
Thanks, I'm starting to think I'm better with a 'clean sheet' rather than a template.
Hi Christopher and welcome to our :)
Unfortunately there is a lot of legacy code out in the wild since there has happened a lot with Umbraco past the last 10 years so it can sometimes be confusing to figure out what a best practice for doing a certain task is. Many people have different takes on things as well so what works for one developer in a certain context might not work for you in your context because there might be some small differences.
Are you currently just playing around in order to learn some of the ins and outs of Umbraco? Or are you working on a client project? It might be a good idea to either start out fresh or start out by using the default theme "Fanoe starter kit" since it features the use of the new grid editor as well.
It might also be worth considering attending the level 1 and 2 courses to get a good introduction to Umbraco and become certified if it's a system you intend to learn and use for a long time - You can read more about that here http://umbraco.com/products/training
Also it might be nice to read this article http://letswritecode.net/articles/why-choose-umbraco-for-your-next-web-project/ as well and you can find some useful stuff here as well https://our.umbraco.org/documentation
/Jan
Hi Jan,
Many thanks. It is for a client site and everything else seems to be straightforward enough. I do hear you on the legacy code and there seems to be no up to date book available for version 7 (i'm a sucker for having a reference tool to hand). The training would be incredibly useful but geographically restricting (I'm a busy Dad of triplets living in Scotland)
Hi Christopher
Ah yeah I can see that it can be a challenge indeed. But there are classes held in London if that makes any difference.
However I think that a subscription to umbraco.tv might be a good idea then.
This Razor cheatsheet might come in handy btw https://our.umbraco.org/projects/developer-tools/umbraco-v6-mvc-razor-cheatsheets - And then it's a matter of keeping in mind that Razor is a subset of C# so if you can't find a razor example then finding a c# example might just be working as well.
But feel free to ask any further questions in here as you go since it can be a steep learning curve sometimes when starting from scratch.
Also if you go to the "Developer" section and right click the "partial view macros" folder in order to create a new macro you can choose some predefined code snippets for achieving different tasks - It might serve as inspiration to learn from. But currently there are no paging examples though.
/Jan
is working on a reply...