Jump to:

1840 Posts in 1598 Topics by 557 members

Blog Module

SilverStripe Forums » Blog Module » Newbie needs help with Blog installation and behaviour in CMS

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 968 Views
  • Larry7
    Avatar
    Community Member
    21 Posts

    Newbie needs help with Blog installation and behaviour in CMS Link to this post

    I am a complete notice to SS but I managed to get it installed on sitevalley.com.

    Then tried to install the Blog module. That also seemed to work but there are some strange behaviours I can't work out. I am using SS 2.4 and the last Blog module.

    In widgets I have checked Blog Management. So when the site is displayed I see option for

    Post a New Entry
    Comment Administration
    Log Out

    when I click Published Site from the CMS.

    If I click logout on the Blog page I still two two of those tabs

    Post a New Entry
    Log Out

    If I click Post A New Entry I get the message

    Action 'post' isn't allowed on class BlogHolder_Controller

    which I guess means not authorised but isn't something a visitor should see at all.

    In the CMS under the Blog tab there is an entry which says
    Silverstripe Blog Module Successfully Installed but I click this I receive the error

    Fatal error: Class 'PopupDateTimeField' not found in /usr/home/liveinsp/domains/xxxxx.org/public_html/blog/code/BlogEntry.php on line 81

    The same error occurs if I click the tab below which describes the first Blog posting.

    I have no idea what's going on so any pointers really appreciated

    Thanks

    Larry

  • bartvanirsel
    Avatar
    Community Member
    94 Posts

    Re: Newbie needs help with Blog installation and behaviour in CMS Link to this post

    I think this is caused by the fact that the blog module is not compatible with silverstripe 2.4 yet.

  • Larry7
    Avatar
    Community Member
    21 Posts

    Re: Newbie needs help with Blog installation and behaviour in CMS Link to this post

    That's disappointing. I would like to have Blog so does that mean I have to regress the SS level to use it or is a fix in the works?

    How hard is it to de-install the Blog module?

  • Blake_NiteoDesign
    Avatar
    Community Member
    17 Posts

    Re: Newbie needs help with Blog installation and behaviour in CMS Link to this post

    It's a pretty easy fix to get it going again.

    Check out http://open.silverstripe.org/changeset/99407/modules/blog/trunk, make the change they describe there (sans trunk), dev/build?flush=1, refresh admin and no more errors!

    Hope this helps.

  • Larry7
    Avatar
    Community Member
    21 Posts

    Re: Newbie needs help with Blog installation and behaviour in CMS Link to this post

    Didn't work but then I am new to whole SVN thing. Was I supposed to change one line

    this

    $fields->addFieldToTab("Root.Content.Main", new PopupDateTimeField("Date", _t("BlogEntry.DT", "Date")),"Content");

    to this

    $fields->addFieldToTab("Root.Content.Main", $dateField = new DatetimeField("Date", _t("BlogEntry.DT", "Date")),"Content");

    or add in the two lines

    $dateField->getDateField()->setConfig('showcalendar', true);
    $dateField->getTimeField()->setConfig('showdropdown', true);

    I added all three lines (one change, two new) did the build which seemed to work but the problem still exists. When you logout of the Blog module, the option to post a blog still shows.

    Anything else I should be doing?

    Thanks

    Larry

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