Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Image posting within the Blog module

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: 2603 Views
  • GangsterPanda
    Avatar
    Community Member
    5 Posts

    Image posting within the Blog module Link to this post

    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.

  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    Re: Image posting within the Blog module Link to this post

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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Image posting within the Blog module Link to this post

    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');

  • GangsterPanda
    Avatar
    Community Member
    5 Posts

    Re: Image posting within the Blog module Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Image posting within the Blog module Link to this post

    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.

  • GangsterPanda
    Avatar
    Community Member
    5 Posts

    Re: Image posting within the Blog module Link to this post

    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?

  • Reflektera
    Avatar
    49 Posts

    Re: Image posting within the Blog module Link to this post

    @GangsterPanda
    What does your BlogEntry.ss look like?

  • spenniec
    Avatar
    Community Member
    37 Posts

    Re: Image posting within the Blog module Link to this post

    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!

    2603 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.