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

Extension - Hide BlogEntry from CMS sitetree (SS3)


Reply


4 Posts   1285 Views

Avatar
Lightning

Community Member, 1 Post

21 April 2013 at 8:17pm

Edited: 21/04/2013 9:52pm

Maybe someone implemented this before, but I made a small extension that hides BlogEntry items (except modified, drafts) from the CMS sitetree and adds the management/creation of it to a seperate BlogHolder tab 'Blog Entries'.

Requires: SS 3+ and Blog module
Extract it to folder 'extension-hidepages' (CSS relies on it)

2 extension classes are attached to 'BlogHolder' and 'BlogEntry' in _config/_config.yml

BlogHolder:
extensions:
- CMSHideBlogEntryExtension
BlogEntry:
extensions:
- CMSFormatGridFieldTreeTitleExtension


I couldn't figure out how to make the BlogEntry Title searchable in the GridField. Maybe someone can help me with that?

ps. The extension is quiet generic, except from the name of the extra BlogHolder tab and Griedfield, which means that it can be used for other page types as well.

Attached Files
Avatar
Brasil

Community Member, 12 Posts

4 March 2014 at 12:27am

Very useful this! I installed and it works perfect. The sitetree is much more organized now. Thanks!

Avatar
camfindlay

Forum Moderator, 171 Posts

5 April 2014 at 12:15pm

There was this module too that does the same thing.

https://github.com/micschk/silverstripe-excludechildren

And this one to manage child pages in a gridfield
http://addons.silverstripe.org/add-ons/christopherdarling/silverstripe-gridfieldsitetree

Avatar
neilberry

Community Member, 6 Posts

25 April 2014 at 11:13pm

This is superb - thank you very much for posting. Just what I was looking for! :)