You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "brushed (JIRA)" <ji...@apache.org> on 2019/04/01 20:34:02 UTC

[jira] [Commented] (JSPWIKI-1104) Add ALERT Dialog with cookies

    [ https://issues.apache.org/jira/browse/JSPWIKI-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807157#comment-16807157 ] 

brushed commented on JSPWIKI-1104:
----------------------------------

The alert message would appear only once, when the cookie is not yet set. 
 Or after your clear the UserPreferences.

The alert could be in any page you want to use to issue the notification on.
 Or it could be included in the TitleBox or in the LeftMenu page, 
 so it would be visible the first time a user visit any content of the site.

The lifetime of the alert cookie could be configurable with a jspwiki property.

 

*ALTERNATIVE*
 Rather then using a {{%%alert}} style, probably a better option would be to use the
 InsertPage plugin. This way, the notification information would always be in a separate page.
 (eg the SecurityPolicy page) and only be included in the page when the cookie is not
 yet set.
{code:none}
[{InsertPage page='SecurityPolicy' show='once' }]
{code}
The InsertPage plugin would get a new {{show}} parameter. By default, its value would
 be set to 'always'. When put on 'once', the page will only be inserted if the
 cookie is set.
  

> Add ALERT Dialog with cookies
> -----------------------------
>
>                 Key: JSPWIKI-1104
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1104
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Templates and UI
>            Reporter: brushed
>            Priority: Minor
>
> Add support for an alert dialog with cookies. The alert dialog is only shown when the cookies has not yet been set. (first visit of a site)
> Use case:
>  Request consent from a site visitor about the usage of cookies.
>  (ref. certain requirements of European privacy laws: the General Data Protection Regulation (GDPR) and the ePrivacy Directive)
> Suggestion:
> {code:none}
> %%alert-<name-of-the-cookie>
> Privacy message come here
> /%
> {code}
> Same as {{%%alert}} but with additional OK/CANCEL buttons at the bottom.
> The dialog is only shown when the cookie has not been set.
> This dialog can be used on the TitleBox page or on any other JSPWiki page.
> Extra: the status of the alert-cookies could be shown as part of the User-Preference page.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)