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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Strange comments behaviour.


Reply

3 Posts   992 Views

Avatar
dab

14 August 2009 at 6:06am Community Member, 50 Posts

Hello there.
Get strange comments data attached to comments metadata, look at screenshot.
And after adding comment - page redirects to new one, with comment id in URL,
and this redirection cuts whole page, until this comment, why so?
You may try how this happens by yourself here -> http://kunstforum.as/psykedelisk-opplevelse-i-fargesprakende-labyrint/
try to post comments and look how redirection happens.

Need advice. Thank you.

Attached Files
Avatar
Willr

14 August 2009 at 3:29pm Forum Moderator, 5511 Posts

Because you have spam protection enabled ajax commenting is disabled. This is why you are seeing a redirect.

The system is designed so after you post a comment you are redirected back down to your comment so you can make sure it has been added correctly. You can see where this redirect takes place by looking in the PageCommentInterface.php class - about line 300 it redirects to the given ID

Avatar
dab

14 August 2009 at 8:54pm (Last edited: 14 August 2009 8:56pm), Community Member, 50 Posts

Thank you, Willr.

What about strange numbers near comments date?

Posted by Dmitry, 14/08/2009 5:12am (6.000000e+0r siden)

And i still dont understand how it is possible to cut page content while linking to specified id.
Did you saw it?