Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.customoverrides

How to install Products.CustomOverrides

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.customoverrides
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
Windows (64-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
Mac OS X (10.5+)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
Linux (32-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
Linux (64-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
 
Dependencies
Lastest release
version 1.0.3 on Mar 16th, 2011

CSS and JS overrides for Plone

This product allows content managers to inject custom stylesheets and Javascript by adding a file to a folder. On that folder and its descendants, these will be added to the existing CSS/JS.

If you want to style a section of the site, Plone already provides ways to do that. Please read http://plone.org/documentation/kb/create-a-different-look-and-feel-for-different-sections-of-your-web-site-without-creating-new-skins for more info on that, and decide if you have a use for this product.

How to use

The main thing is to place a file called custom.css or custom.js ("custom files") in a folder. These files will then be inserted in a special viewlet in the HTML HEAD section.

There are two ways to manage custom files:

Add a custom file using Plone

Add a Plone File (ATFile).

  • Prepare a custom.css or custom.js file
  • In Plone, go to the desired folder
  • Click the "Add item" menu
  • Select "File"
  • Upload the prepared file

The advantage of this method is that the familiar Plone interface can be used to upload the file. Its disadvantage is that the file can't be modified: You'd prepare a new file locally and replace the existing one instead.

Also be aware that:

  • Plone files may be workflowed, depending on your site. If a custom file is private, it won't be visible to visitors who aren't logged in.
  • Plone files may show up in your navigation, depending on your site's navigation settings.
Add a custom file using the ZMI

Add a Zope File.

  • Either:
    • In Plone, go to the desired folder and append manage_main to the URL, or
    • Go to the ZMI straight away, and go to the desired folder
  • Add a File, name it either custom.css or custom.js
    • You may choose to upload a locally prepared file.
  • Edit the file.

This method is more flexible: it is possible to edit the file through the web. However, the ZMI is more complex to use, and requires higher permissions, so this method is for power users.

Tested on

Plone 3, Plone 4

Warning
  • Incorrect CSS/JS may mess up your site.

Changes

1.0.3 (2011-03-15)
  • setup.py: add product URL, update keywords
  • Documentation
1.0.2 (2011-03-09)
  • Documentation
  • Register viewlets in all skins.
1.0.1 (2011-03-08)

First public release.

Subscribe to package updates

Last updated Mar 16th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.