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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

Create Blog Holder without CMS


Go to End


2 Posts   1666 Views

Avatar
lulurdz

Community Member, 3 Posts

24 July 2012 at 11:57am

is possible to create blog holders without using CMS
any widget?
any clue?

the point is that I'm considering that my users could create blogs and I'm worried about things that they could do in CMS.

thanks in advance

Avatar
copernican

Community Member, 189 Posts

21 September 2012 at 5:28am

I take it you want users from the public end of the website to be able to create their own blogs? If so, this is certainly possible.

You'd first want to create some sort of form that asks the user what they want their blog to be called, etc. in your form handle function use the data they entered to create a new blog holder. if you check out the function requireDefaultRecords() in BlogHolder.php you'll see it makes a default blog holder when you first install the module. That should help get you started with creating blog holders outside of the CMS.