Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christopher Seely 8 posts 29 karma points
    Apr 06, 2015 @ 10:50
    Christopher Seely
    0

    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!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 06, 2015 @ 11:25
    Dennis Aaen
    1

    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

     

  • Christopher Seely 8 posts 29 karma points
    Apr 06, 2015 @ 11:31
    Christopher Seely
    0

    Thanks, I'm starting to think I'm better with a 'clean sheet' rather than a template. 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 06, 2015 @ 11:51
    Jan Skovgaard
    0

    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

  • Christopher Seely 8 posts 29 karma points
    Apr 06, 2015 @ 12:00
    Christopher Seely
    0

    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)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 06, 2015 @ 12:32
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft