Jump to:

10845 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » $pageComments Question

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 522 Views
  • fengdeadshot
    Avatar
    Community Member
    6 Posts

    $pageComments Question Link to this post

    Hi guys, I was wondering how the $pageComments works from the behavior tab?
    I mean how you just put the variable where you want comments displayed and then enable it,
    and BAM it works...

    I'm trying to make a JQueryImageCarousel Drop in module,
    I kinda wanna get it working much like the pageComments where you can drop and go.
    Any ideas, or know how about how this works?

    I'm going through the documentation and such now, but if someone knows that would be great.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: $pageComments Question Link to this post

    I mean how you just put the variable where you want comments displayed and then enable it,
    and BAM it works...

    Yes this is how it works. If you want an example of how you should do it check out the new comments module (https://github.com/silverstripe/silverstripe-comments) or more specifically the function https://github.com/silverstripe/silverstripe-comments/blob/master/code/extensions/CommentsExtension.php will help.

    How this works is adds an extension to a Page object (via the comments/_config.php). That extension (which I linked above) has several functions like $CommentsForm which can be called (since that extension is now on the object).

    522 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.