Skip to main content

collective.localstyles

With this Plone Addon you can add local styles within a subsection of your Plone site.

After installation you can upload a css file, named localstyles.css anywhere to a folderish content item. This css file is then included for this folder and all content items below. The traversing stops for ISite based objects, which a localstyles.css file within a ISite (e.g. a collective.lineage site) isn’t used for folders, which are in higher hierachy of the content tree.

This product registers a viewlet named collective.localstyles.viewlet, which is included in plone.app.layout.viewlets.interfaces.IHtmlHead and is responsible for injecting the localstyles.css file.

This product is inspired by this discussion: http://plone.293351.n2.nabble.com/CSS-for-a-single-page-td7559936.html

Changelog

1.3 (2026-04-04)

  • Add a view variant of the localstyles template. It has the same name as the viewlet: collective.localstyles.styleincluder [thet]

  • Modernize localstyles template. [thet]

1.2 (2020-12-01)

  • Allow localstyles also in ISite roots. [thet]

1.1 (2017-02-13)

Incompatibilities:

  • Changed module-global LOCALSTYLES_FILE to LOCALSTYLES_FILES and allow multiple local style file names. Default are: localstyles.css and localstyles_css. [thet]

New:

  • Add last modification time as URL parameter to be sure to get changed styles through caching. [thet]

1.0 (2014-06-03)

  • Initial.

Metadata

Release files for collective.localstyles 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.localstyles 1.3
File Size Uploaded
collective_localstyles-1.3.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.localstyles 1.3
File Interpreter ABI Platform
collective_localstyles-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / collective_localstyles-1.3.tar.gz

Download URL collective_localstyles-1.3.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a01fb154add6e2f93b6aede34bc2ad3bf18db4c1a07c83b49588ebd7a01e6239
BLAKE2b-256 checksum
How to use checksums
4c837b3fbb7cd6399a74a9a9d7bd65da725ff2a763ba8cab6cde3be5715b1288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / collective_localstyles-1.3-py3-none-any.whl

Download URL collective_localstyles-1.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a834456a357c4e5d2129c4613c63c9f8af7373a0d215617014a3b34a6e1dbab0
BLAKE2b-256 checksum
How to use checksums
bdded968c0ab9d02b1f17e8475e90e4b6bb39c56522a74f5277eb9e15c768c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page