SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    page break in cms

    In a content management system, when the authors are writing articles, should I let them type in a page break?

    Since the authors will decide how long a page is before they enter a page break, depend on an author, each page can have various length which may not look good when displaying each page on the web.

    Thanks,
    John

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's no reason not to if you give them good guidelines on how they should split up pages. Page breaks can greatly enhance the readability of a site, as well as giving you the opportunity to score a few more page impressions / ad banners

  3. #3
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks skunk. I think I let them type in a page break. I'll put in an approval/editing system, then the author's page breaks would be reviewed by an editor before the page goes live.

    By the way in the first place, how can I check and count the number of lines to let the author knows that he violates the guideline (if exceeding the maximum number of lines allowed)?

    I'm thinking about counting a certain number of words and they'll become one line, but a word can have more or less letters than the other words, and so each line may not be the same length.

    Maybe I should count each letter and space and make a line. What do you think?

    Thanks in advance,
    John

  4. #4
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I get it. Just use wordwrap() or substr() to manipulate the text.

    John


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •