Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Blog paragraph style


Reply

6 Posts   2684 Views

Avatar
HansR

9 June 2008 at 2:33am (Last edited: 9 June 2008 2:36am), Community Member, 140 Posts

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?

Avatar
Willr

9 June 2008 at 6:19pm Forum Moderator, 5511 Posts

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!

Avatar
HansR

10 June 2008 at 1:31am Community Member, 140 Posts

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

Avatar
Aaron

12 June 2008 at 6:36pm Community Member, 63 Posts

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

Avatar
Sam

7 July 2008 at 11:42am Administrator, 685 Posts

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

Avatar
HansR

8 July 2008 at 1:49pm Community Member, 140 Posts

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

Hans