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

Blog comments - Name = login data


Go to End


2 Posts   1174 Views

Avatar
Mackodlak

Community Member, 95 Posts

9 June 2011 at 8:04pm

Edited: 09/06/2011 8:44pm

The next thing I have to figure out is how to change comments in Blog Module:

The thing is now they allow entering custom Name.
I wish them to be so that a person has to login and that Name field is filled with persons login data (name, surname, e-mail, whatever).
I will play with it myself, but if som1 here has done the same thing and knows an easy way to change it I would be thankful!

Come to think of it I want it to be so all over the web site so basically it means overriding the built-in page comments

Avatar
Mackodlak

Community Member, 95 Posts

9 June 2011 at 9:03pm

Found built-in function to do that. Solved!

For those that might need the same thing:

put:

PageCommentInterface::$comments_require_login = true;

in /mysite/_config.php

Sry for spamming the forum!