Metadata-Version: 2.4
Name: cs.behavior.footerhtmlcode
Version: 1.1
Summary: An add-on providing a behavior that allows entering arbitrary HTML code to be shown in a portlet in LRF objects
Home-page: https://github.com/codesyntax/cs.behavior.footerhtmlcode
Author: Mikel Larreategi
Author-email: mlarreategi@codesyntax.com
License: GPL version 2
Project-URL: PyPI, https://pypi.python.org/pypi/cs.behavior.footerhtmlcode
Project-URL: Source, https://github.com/codesyntax/cs.behavior.footerhtmlcode
Project-URL: Tracker, https://github.com/codesyntax/cs.behavior.footerhtmlcode/issues
Keywords: Python Plone
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: Addon
Classifier: Framework :: Plone :: 5.1
Classifier: Framework :: Plone :: 5.2
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
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.multilingual
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: summary

==========================
cs.behavior.footerhtmlcode
==========================

.. image:: https://travis-ci.com/codesyntax/cs.behavior.footerhtmlcode.svg?branch=master
    :target: https://travis-ci.com/codesyntax/cs.behavior.footerhtmlcode

.. image:: https://coveralls.io/repos/github/codesyntax/cs.behavior.footerhtmlcode/badge.svg?branch=master
    :target: https://coveralls.io/github/codesyntax/cs.behavior.footerhtmlcode?branch=master


This addon adds a behavior to provide an extra field where you can write any HTML code.

This HTML code will be shown in the footer viewlet. The Footer viewlet will look for the nearest Language Root Folder (/en, /de, /es, ...) and will render the value of the field present there.

This behavior is useful for multilingual sites where you may want to put some language-dependant javascript code editable by the end user.

We are using this to provide the cookie message in several languages. We are using `Cookie Consent`_ to achieve this.

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

Install cs.behavior.footerhtmlcode by adding it to your buildout::

    [buildout]

    ...

    eggs =
        cs.behavior.footerhtmlcode


and then running ``bin/buildout``

Use
---

Install the product in the Plone Control Panel -> Addons. The install process will enable the behavior automatically for Language Root Folders.


Contribute
----------

- Issue Tracker: https://github.com/codesyntax/cs.behavior.footerhtmlcode/issues
- Source Code: https://github.com/codesyntax/cs.behavior.footerhtmlcode


Support
-------

If you are having issues, please let us know using the `GitHub issue tracker`_


License
-------

The project is licensed under the GPLv2.

.. _`Cookie Consent`: https://cookieconsent.osano.com/
.. _`GitHub issue tracker`: https://github.com/codesyntax/cs.behavior.footerhtmlcode/issues


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

- Mikel Larreategi, mlarreategi@codesyntax.com


Changelog
=========


1.1 (2026-04-23)
----------------

- Remove python version restriction
  [erral]


1.0.1 (2019-11-21)
------------------

- Fix flake8.
  [erral]


1.0 (2019-11-21)
----------------

- Avoid infitine loops.
  [erral]


1.0a2 (2019-09-12)
------------------

- Do not purge behaviors for LRF
  [erral]


1.0a1 (2019-09-06)
------------------

- Initial release.
  [erral]
