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

How to install collective.richdescription

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.richdescription
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
Windows (64-bit)
Mac OS X (10.5+)
1.0 Available View build log
Linux (32-bit)
1.0 Available View build log
Linux (64-bit)
1.0 Available View build log
 
License
GPL
Lastest release
version 1.0 on Nov 20th, 2012

Introduction

Adds the new html-formatable textfield "richdescription" to Archetypes based content types and hides the description field from ExtensibleMetadata. When the field is saved, the contents are also stored in the "description" field, but without html-formating. A Metadata index is provided, so that "richdescription" can be used with catalog brains. There is no folder_listing template yet, but if you want to have HTML formated descriptions in folder_listing, then use something like this:

<tal:block
tal:define="item_description item/richdescription|nothing;
item_description python:item_description or item.Description;">
<p class="akaDescription"
tal:condition="item_description" tal:content="structure item_description">DESCRIPTION</p>

System Message: WARNING/2 (<string>, line 17)

Definition list ends without a blank line; unexpected unindent.

</tal:block>

Warning

Although there are no big issues with this package, use it at your own risk! The description field wasn't meant to hold HTML data. People may tend to write long essays in the description field, which is not what you want, probably. Some use cases require this functionality though, so have fun.

Migration?

There should be no need for a specific migration step. When no richdescription field is available for a content type, it falls back to the normal description field. When saving a content type, the richdescription field is set and the catalog's metadata richdescription column is filled.

Compatibility

Tested with Plone 4

TODO

  • Tests.
  • Uninstall profile

Author

Johannes Raggam <johannes@raggam.co.at>

Changelog

1.0 (2012-11-07)
  • Initial release
1.0pre
  • When no description is set, return a BaseUnit as fallback. Fixes AttributeError, where original_encoding was tried to accessed on a string value. [thet]
  • Register the skins folder for any theme. [thet]
  • Initial version on 2010-10-05 for sfd.at.

Subscribe to package updates

Last updated Nov 20th, 2012

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.