Metadata-Version: 2.4
Name: collective.linkconsentinfo
Version: 1.5
Summary: A consent info page for Plone Links, which allows you to show a custom info message before the user open's the link.
Home-page: https://github.com/collective/collective.linkconsentinfo
Author: Maik Derstappen
Author-email: md@derico.de
License: GPL version 2
Project-URL: PyPI, https://pypi.python.org/pypi/collective.linkconsentinfo
Project-URL: Source, https://github.com/collective/collective.linkconsentinfo
Project-URL: Tracker, https://github.com/collective/collective.linkconsentinfo/issues
Keywords: Python Plone CMS
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: Addon
Classifier: Framework :: Plone :: 5.2
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Requires-Python: >=3.8
License-File: LICENSE.GPL
License-File: LICENSE.rst
Requires-Dist: setuptools
Requires-Dist: z3c.jbot
Requires-Dist: plone.api>=1.8.4
Requires-Dist: plone.app.dexterity
Provides-Extra: test
Requires-Dist: plone.app.testing; extra == "test"
Requires-Dist: plone.testing>=5.0.0; extra == "test"
Requires-Dist: plone.app.contenttypes; extra == "test"
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
   If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
   This text does not appear on pypi or github. It is a comment.

.. image:: https://github.com/collective/collective.linkconsentinfo/workflows/Plone%20package/badge.svg
    :target: https://github.com/collective/collective.linkconsentinfo/actions

.. image:: https://coveralls.io/repos/github/collective/collective.linkconsentinfo/badge.svg?branch=master
    :target: https://coveralls.io/github/collective/collective.linkconsentinfo?branch=master
    :alt: Coveralls

.. image:: https://img.shields.io/pypi/v/collective.linkconsentinfo.svg
    :target: https://pypi.python.org/pypi/collective.linkconsentinfo/
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/status/collective.linkconsentinfo.svg
    :target: https://pypi.python.org/pypi/collective.linkconsentinfo
    :alt: Egg Status

.. image:: https://img.shields.io/pypi/pyversions/collective.linkconsentinfo.svg?style=plastic   :alt: supported - Python versions


==========================
collective.linkconsentinfo
==========================

A consent info page for Plone Links, which allows you to show a custom info message before the user open's the link.

Features
--------

- LinkConsentInfo behavior, add's a checkbox to enable a consent info page for a link object
- Prevent redirection when link consent info is enabled
- Control panel to define a custom html text to show to the user, before she follows the link

.. image:: https://github.com/collective/collective.linkconsentinfo/raw/main/docs/link-consent-info.gif

.. image:: https://github.com/collective/collective.linkconsentinfo/raw/main/docs/link_consent_info_controlpanel.png


Translations
------------

This product has been translated into

- English
- German


Installation
------------

Install collective.linkconsentinfo by adding it to your buildout::

    [buildout]

    ...

    eggs =
        collective.linkconsentinfo


and then running ``bin/buildout``


Contribute
----------

- Issue Tracker: https://github.com/collective/collective.linkconsentinfo/issues
- Source Code: https://github.com/collective/collective.linkconsentinfo

Author
------

Maik Derstappen [MrTango] - `Derico <https://derico.de>`_


Support
-------

If you are having issues, please let us know.


License
-------

The project is licensed under the GPLv2.


Contributors
============

- Maik Derstappen, md@derico.de


Changelog
=========


1.5 (2026-06-22)
----------------

- Fix ``AttributeError`` on Plone 6.2 / plone.app.contenttypes where
  ``can_edit`` became a read-only property; stop assigning to it in the view.
  [MrTango]
- Drop Python 2 leftovers (``six``, coding cookie) from the link consent view.
  [MrTango]


1.4 (2025-04-01)
----------------

- remove unnecessary dependency to plone.restapi
  [MrTango]


1.3 (2023-09-01)
----------------

- fix dependencies to make it work on Python 3
  [MrTango]


1.2 (2021-06-10)
----------------

- Improve link consent info view
  [MrTango]

- Enable link consent behavior for Link CT by default
  [MrTango]

1.1 (2021-06-07)
----------------

- Hide consent info text in link view, when the consent_info is not enabled
  [MrTango]


1.0 (2021-06-07)
----------------

- Initial release.
  [MrTango]
