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

Image posting within the Blog module


Reply


8 Posts   2651 Views

Avatar
GangsterPanda

Community Member, 5 Posts

18 February 2008 at 4:40am

I'm experiencing some issues with posting images in the Blog module, simply put - it does not work. Inserting images works just fine on regular pages, but for BlogEntry pages the "Insert image" button does absolutly nothing.

Is this feature not supposed to be working for the Blog module or am I somehow doing something wrong? I'm doing this from the backend in order to get the formatting interface.

Avatar
simon_w

Forum Moderator, 474 Posts

18 February 2008 at 8:00am

This doesn't work as the blog module uses BBCode, thus the WYSIWYG editor (which uses HTML) doesn't pick up the content field.

Avatar
Willr

Forum Moderator, 5513 Posts

18 February 2008 at 11:55am

Yea I find BBCode annoying. I prefer to just use the WSYIWYG editor. If you want to disable BBCode and go back to the editor add this line to your _config.php - BlogEntry::allow_wysiwyg_editing('true');

Avatar
GangsterPanda

Community Member, 5 Posts

18 February 2008 at 8:23pm

Willr, I get the following error when I try to access the site after adding the line to my _config.php:

Fatal error: Call to undefined method BlogEntry::allow_wysiwyg_editing() in (...)/mysite/_config.php on line 30

I've tried flushing and rebuilnd the db, but I get this error everywhere I go. Any suggestions besides removing it?

Avatar
Willr

Forum Moderator, 5513 Posts

18 February 2008 at 10:14pm

Sorry that method / feature must not be in the general 0.1 blog release. Check out the trunk version if you need that feature, it will probably be in there.

Avatar
GangsterPanda

Community Member, 5 Posts

19 February 2008 at 8:22am

I've installed the latest trunk version of the Blog module, and done /db/build?flush=1 and I'm still having some problems with this. On the main page, /blog it displays correctly, but when you try to read the full blog post the post is displayed with HTML code as part of the message, such as:
<u><em><strong>This is a test!<br /></strong></em></u>

In the WYSIWYG-editor it looks like "This is a test" in bold, itallic and underlined, same as it does on the front page. Any suggestions?

Avatar
Reflektera

49 Posts

28 February 2008 at 10:45pm

Edited: 28/02/2008 10:53pm

@GangsterPanda
What does your BlogEntry.ss look like?

Avatar
spenniec

Community Member, 37 Posts

14 March 2008 at 2:42pm

I recommend you check out this post to allow HTML instead of BBCode
http://www.silverstripe.com/site-builders-forum/flat/10328
Good on ya Anatol!