Skip to main content

An add-on providing a behavior that allows entering arbitrary HTML code to be shown in a portlet in LRF objects

Project description

https://travis-ci.com/codesyntax/cs.behavior.footerhtmlcode.svg?branch=master https://coveralls.io/repos/github/codesyntax/cs.behavior.footerhtmlcode/badge.svg?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

Support

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

License

The project is licensed under the GPLv2.

Contributors

Changelog

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.behavior.footerhtmlcode-1.0.1.tar.gz (21.7 kB view details)

Uploaded Source

File details

Details for the file cs.behavior.footerhtmlcode-1.0.1.tar.gz.

File metadata

  • Download URL: cs.behavior.footerhtmlcode-1.0.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15+

File hashes

Hashes for cs.behavior.footerhtmlcode-1.0.1.tar.gz
Algorithm Hash digest
SHA256 73a2369cfe3f2209b7f8f0cdbaec9400d183085642bbdfc70788ff5aa0e2a673
MD5 56b510bcb022e981d38cb17ce2d762c9
BLAKE2b-256 0c7c1a660b2db8c9c3c8f1ba6a645a1557f0cb2514e460fe9f2f9f1aaa2e892d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page