Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blog paragraph style

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2659 Views
  • HansR
    Avatar
    Community Member
    140 Posts

    Blog paragraph style Link to this post

    Hi. I'm almost completely new to PHP, CSS, etc. One item that irks me a little bit is that the blog doesn't insert spacing between paragraphs (it would be nice to have the text justified too). As a result, the paragraphs are not clearly visible, and the structure of the text is obscured.

    Does anyone know what to change in order to insert spacing? I'd assume that simply putting <p> tags around each paragraph would work; I just have no idea how to achieve that.

    Hans

    EDIT: I just noticed that this forum doesn't insert paragraph spaces either. So would that make this a problem with the BBCode to HTML conversion?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Blog paragraph style Link to this post

    By default the blog uses BBCode which as you pointed out appears to be the problem with no line breaks (instead of breaking it into p tags it adds <br/> in the white space - baddd!). I suggest unless you love BBCode you disable it by downloading the latest svn version of the blog module and adding BlogEntry::allow_wysiwyg_editing(); to your _Config.php file.

    Now you should be able to use TinyMCE and that should format everything nicely!

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: Blog paragraph style Link to this post

    Thanks. I've updated to the latest daily build and have reformatted the existing pages.

    Just one minor item though, with BlogEntry::allow_wysiwyg_editing(); set, clicking on the "post a new blog" link still sends you to the BBCode style blog entry page (complete with the BBCode Help link). It would be nice to have the TinyMCE editor here, instead of having to post the blog entry and then edit it again in the admin pages.

    Hans

  • Aaron
    Avatar
    Community Member
    63 Posts

    Re: Blog paragraph style Link to this post

    Exactly what I'm after too. The front end blog management link (And edit) is a winner for clients I reckon, but totally unusable when it inserts BBCode.

    I also noticed, on a fresh copy of 2.2.2 and today's daily build of blog, setting BlogEntry::allow_wysiwyg_editing(); completely removes the auto-except feature (for me at least). The entire blog entry appears in the blog holder. By default with no WYSIWYG activated, excepts are automatic it seems. (I added 5 paragraphs of Lorem Ipsum and it did a page break after the first - perfect).

    Cheers
    Aaron

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Blog paragraph style Link to this post

    Hi all,

    Just to clear up some confusion: The same bbcode engine is used for both the blog and the forum, so the bug with newlines affects them both.

    It will be fixed in 2.2.3; for those that want to track its progress for their own site, they can add themselves to the CC field here: http://open.silverstripe.com/ticket/2521

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: Blog paragraph style Link to this post

    @Sam
    Thanks. I see that it's already fixed on this forum.

    Hans

    2659 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.