Splitting Up Content Into Pages? Best Method?

Discussion in 'Programming' started by jooles, Jun 22, 2007.

  1. #1
    I'm writing up a CMS for a new site and I was wondering what the best way to split content up into separate pages was.

    This is the way I was thinking of proceeding:

    1. Have special code like: "[PAGEBREAKHERE]" inside my content
    2. Explode the text field wherever there is the special code from step 1
    3. Display an exploded bit according to a GET page num variable in the URL. (I hope this all made sense...)

    Any comments would be appreciated. Thanks!
     
    jooles, Jun 22, 2007 IP
  2. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure to what do you mean by splitting up content? but you can always use Read more.. and then redirect them to different page? :-/ if that's what you're trying to say...
     
    ProgrammersTalk, Jun 23, 2007 IP
  3. UnrealEd

    UnrealEd Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd go for ProgrammersTalk solution:
    Display the first 20 (or more) first words, and then display a "read more" link, linking to a page where you just display everything. If the text is véry long, it might be best to break it up on the "read more" page as well, and then i'd go for the GET param in the url
     
    UnrealEd, Jun 23, 2007 IP
  4. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I personally hate sites that break up text in pages: this is a computer display, not a book, so it's a lot easier to scroll down than have to click and wait for another page to load. Of course it's a good way to inflate page views, but otherwise I don't see the point.
     
    MartiCode, Jun 24, 2007 IP
  5. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I wouldn't split article but if you really want to do it, then your solution is quite good it will be very flexible.
     
    Greg Carnegie, Jun 25, 2007 IP
  6. jooles

    jooles Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i have advertisements embedded into the top of the content, so more pages will mean a higher concentration of ads. Does my thinking translate to profit boosts in reality?
     
    jooles, Jun 26, 2007 IP
  7. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Main page is used to only highlight the story, assuming that this is not a blogging site that's usually have the whole content on the main page. Even on the bloggin pages are looks nicer when it doesn't have small scroll because of long information provided...
     
    ProgrammersTalk, Jun 26, 2007 IP
  8. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Then it makes sense. The solution I use to generate summaries for my RSS feeds is just to cut out the first X chars and then algorithmically search for a clean cutting point. It's not as clean as manually indicating where to cut exactly as you do, but so far it's sufficient (plus nothing quite like a sentence cut halfway to motivate people to clic ;) )
     
    MartiCode, Jun 28, 2007 IP