Skip to main content

Add local styles to subsections in your Plone site.

Project description

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.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.

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

collective.localstyles-1.2.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file collective.localstyles-1.2.tar.gz.

File metadata

  • Download URL: collective.localstyles-1.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for collective.localstyles-1.2.tar.gz
Algorithm Hash digest
SHA256 361cefbb88caae2d573b9960c33e43cec92e49c886c07bb368ed582ce9d7e584
MD5 40415462d712709669cf1f86d893cb0f
BLAKE2b-256 6435a9ea379bf58fed2a916584a3902d598e6e9485fdcb27a299899a6dff27ad

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