FeinCMS 1.4 release notes¶
FeinCMS supports more than one site from the same database with
django.contrib.sitesnow. Thanks to Bojan Mihelac and Stephen Tyler for the work and insistence on this issue.
It is possible to customize the administration model inline used for content types. This means that it’s possible to customize more aspects of content type editing and to reuse more behaviors from Django itself, such as
FeinCMS has gained support for
Reusing the media library in your own content types has become much easier than before. When using a
feincms.module.medialibrary.fields.MediaFileForeignKeyinstead of the standard
django.db.models.ForeignKeyand adding the media file foreign key to
raw_id_fields, you get the standard Django behavior supplemented with a thumbnail if the media file is an image. This requires the next feature too, which is...
InlineModelAdminclasses may be used for the content types now by adding a
feincms_item_editor_inlineattribute to the content type specifying the inline class to be used.
New projects should use
feincms.content.medialibrary.models.MediaFileContent. The argument
POSITION_CHOICESand the corresponding field have been renamed to
typebecause that’s a more fitting description of the intended use. The old and the new media file content should not be mixed; the hand-woven
raw_id_fieldssupport of the old media file content was not specific enough and interferes with Django’s own
FeinCMS has gained a preview feature for pages which shouldn’t be accessible to the general public yet. Just add the following line above the standard FeinCMS handler:
Another button will be automatically added in the page item editor.
Apart from all these new features a few cleanups have been made:
- FeinCMS 1.2 removed the CKEditor-specific rich text content in favor of a
generalized rich text content supporting different rich text editors.
Unfortunately the documentation and the available settings only reflected
this partially. This has been rectified. Support for
FEINCMS_TINYMCE_INIT_CONTEXThas been completely removed. The two settings
FEINCMS_RICHTEXT_INIT_TEMPLATEshould be used instead. See the Content types - what your page content is built of documentation for more details.
- The two settings
FEINCMS_MEDIALIBRARY_URLhave been removed. Their values always defaulted to
MEDIA_URL. The way they were used made it hard to support other storage backends in the media library. If you still need to customize the storage class used in the media library have a look at
- Support for the
show_on_topoption for the
ItemEditorhas been completely removed. This functionality has been deprecated since 1.2.
- A few one-line Page manager methods which were too similar to each other
have been deprecated. They will be removed in the next release of FeinCMS.
from_request. The improved
for_requestmethod should cover all bases.
- A few page methods have been deprecated. This concerns
get_siblings_and_self. The useful bits are already available through Django’s own related managers.