Forum Discussion
You can use the http.request context object to get the parameters used on the request:
For example:
${http.request.parameters.name.get("page", 1)}
One other thing you might want to look into is that there's a REST API method for reporting abuse. It's the "moderation/abuse/report" method in the Message class:
/restapi/vc/messages/id/1271/moderation/abuse/report
I hope this helps!
- ChiaraS12 years agoLithium Alumni (Retired)
Hi,
please note that you can also reuse the default component for that (see comment on this idea: http://lithosphere.lithium.com/t5/customer-ideas/Add-Report-Inappropriate-Content-Button-to-Mobile/idi-p/30961).
The way we did it for another customer was:
- create a custom component "report-abuse-mobile":
<#if page.name == "MobileForumTopicPage" || page.name == "MobileBlogArticlePage" || page.name == "MobileIdeaPage"> <@component id="forums.action.report-abuse"/> </#if>
- add the custom component to the footer of the following quilts: SimpleBlogMessage, SimpleForumMessage, SimpleIdeaMessage
You may need to adjust the instructions based on the interaction styles you need to support, and the mobile skin css for the button style...
- benpiddington12 years agoHelperThank you both! :-)
We'll give it a try and will let you know if we come across anything.
Thanks again!
Ben- ginamulic12 years agoMentor
Would this work in the Idea Exchange as well?
- benpiddington12 years agoHelper
Hi Chiara,
Hi Chiara,
We've started work on implementing this, but have found that when clicking on the link, the Notify Moderator page shows the full skin rather than the mobile skin. Should the mobile skin be displayed on this page, or do we need to create a mobile version of this page?
thanks,
Ben
- ChiaraS12 years agoLithium Alumni (Retired)
Hi,
forgot about that. We did a workaround for that problem, by replacing the Header and Footer on the "Notify Moderator Page" quilt with custom components:
NotifyModeratorPageHeader
<#if clientDevice.mobile> <@component id="mobile.widget.mobile-header"/> <#else> <@component id="quilt:Header"/> </#if>
NotifyModeratorPageFooter
<#if clientDevice.mobile> <@component id="quilt:MobileFooter"/> <#else> <@component id="quilt:Footer"/> </#if>
The following css should also be added to the mobile skin:#lia-body.NotifyModeratorPage .MinimumWidthContainer { min-width: 0; } #lia-body.NotifyModeratorPage .MinimumWidthContainer .lia-content { width: 100%; }
Cheers,
Chiara
- create a custom component "report-abuse-mobile":
Related Content
- 5 years ago
- 3 years ago
- 4 months ago
- 3 months ago