Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Extending PageCommentInterface

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1580 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Extending PageCommentInterface Link to this post

    Ok guys,

    I'm extending the pagecomment and ran into next problem:

    I've set up a few requiredfields, validator... but thing is, it doesn't work as it should.
    It does validate, but doesn't send back any error messages like
    'Email is required' with js off.

    The client side validation does work though.

    You can view my code here:

    http://pastebin.com/d7994bc88

    Speaking of validation, I think the js-validation might be improved to. It doesn't hold me from just filling out whitespace and fails completely in Opera.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Extending PageCommentInterface Link to this post

    Maybe a bug, shall I open a ticket for it?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Extending PageCommentInterface Link to this post

    I can't seem to view your code... is it actually there?

    Cheers,
    Sean

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Extending PageCommentInterface Link to this post

    Oh, it had probably expired.

    Try this:

    http://pastie.caboo.se/126182

    cheerz

    1580 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.