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.

Blog Module /

Discuss the Blog Module.

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

Blog Page Tree


Reply


4 Posts   1397 Views

Avatar
e360

Community Member, 6 Posts

18 November 2011 at 7:22am

When I create a "New Blog Entry" from the dropdown menu, the blog entry is created in the main page tree instead of under the blog page tree. I then have to click on "Allow Drag & Drop Editing" and manually drag the blog entry into the blog folder.

Is this a known issue or bug? I am using SS 2.4.2.

Avatar
jaredkipe

Community Member, 16 Posts

22 November 2011 at 6:02am

Are you highlighting the Parent page BEFORE saying create?

Namely, if you want to make a child BlogEntry under the page titled 'Blog', you first click/highlight 'Blog' in the left tree, then hit 'Create' at the top, select BlogEntry and hit 'Go'.

Avatar
e360

Community Member, 6 Posts

1 November 2012 at 3:08am

Jared: Yes, I've tried highlighting both the the page titled 'Blog' as well, as individual blog entries, but it still ends up at the bottom of the main page tree.

Avatar
gaethofs

Community Member, 9 Posts

4 November 2012 at 3:57am

I suppose you are using the SS 2.4x version of the blog module? I don't really know what changes have been made,
but you should make sure the following things are in place (or you could add them to enforce new protocols).

In the BlogHolder.php the following should be present:

static $allowed_children = array(
   'BlogEntry'
);

And in the BlogEntry.php the following should be present:

static $default_parent = 'BlogHolder';
   
static $can_be_root = false;

When you create a new Blog Entry everything should work fine OR the system would be throwing an exception telling you you can't add new Entries (since can_be_root is disabled).
But cause I'm working with SS3.xx I'm not sure if this will do the trick :).
Hope it works for you!