Message Boards

Auto-Subscribe to "PageCommentsPortlet"

Tom Aerts, modified 4 Years ago.

Auto-Subscribe to "PageCommentsPortlet"

New Member Posts: 17 Join Date: 8/25/17 Recent Posts
I don't really know where to start on this use-case. All pointers and ideas welcome.
On our site, individual users can list items for sale (corporate intranet, so stuff like "selling my kid's bike". Nothing fancy like a commerce website).
To accomodate this, we have a custom DDMStructure for the items, which the user's can create (& manage) via some custom built portlet. When the JournalArticles are created the display page is set automatically using a JournalArticleService- & AssetDisplayPageEntryServiceWrappers.
The DisplayPage in question is a Display Page Template (so built with fragments).

Now what I'm actually trying to achieve: I want to place a PageCommentsPortlet (don't remember the default english name, probably "page reactions") on the Display Page Template (trivial) AND automatically subscribe the creator of the JournalArticle to the PageCommentsPortlet that is present on the Display Pages for the JournalArticles he's owner of.
For this last point I'm kind of at a loss. How do I find the portlet/page in question? How do i programmatically subscribe someone? etc...

Cheers,
Tom