Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Image in blog

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 578 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    Image in blog Link to this post

    hi!
    I use Silverstripe 2.3.7 and blog v.0.3. My problem is add image.

    First problem.
    I change standard bcc editor in this way BlogEntry::allow_wysiwyg_editing('true');
    When I add image in my blog entry and lokk in my daft site, I see html code and not my image. why?

    Second problem.
    Is possible to add image in this way?

    class BlogEntry extends Page {
    static $has_one = array(
       'Photo' => 'Image'
       );
    function getCMSFields() {
          $fields = parent::getCMSFields();
          
          $fields->addFieldToTab("Root.Content.Images", new ImageField('Photo'));
          
          return $fields;
       }
    I try my tab Images is empty. help..

    Thanks!

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