Skip to main content

dynamic theme for Plone

Project description

Introduction :

Change the skin of your plone site, change the skin of any content based on ATFolder on the site, using a simple form.

Just Upload images with the same name in the skin using a tgz or a zip, to overload standard plone skin images referenced in css.

You can add a css for each skin.

You can choose to overload, all parts, or just some parts, of the plone standard css.

You can change Logo, Footer or Colophon viewlets using phantasy skin edit form.

You can choose to display or not plone standard dynamic viewlets (searchbox, site actions …)

The viewlets configuration is taken from the first skin associated with a parent object.

The css are taken from all skins associated with all parents.

The static viewlets edition could be more easy for users if Products.FCKeditor is installed in Plone (the FCKwidget is used).

Dependencies :

  • Plone 3.1.x < Plone4 The Plone4 version will come in a near future with a new css.

  • archetypes.schemaextender (used to add a referencefield to standard Plone Folders)

  • Products.SmartColorWidget

All dependencies are installed when using buildout or easy_install.

Installation :

read docs/INSTALL.txt inside product to install it in your Zope instance

Then in your Plone Site, use portal_quick_installer to install it in Plone, this will also install Products.SmartColorWidget.

FAQ :

  • How to make my own phantasy config and css ?

    Just look at the aws.minisite package code, it’s a complete example which will show you how to make a new skin schema and how to override phantasy css. In aws.minisite you will also find a way to use collective.phantasy with a different strategy (the schema extender field is no more used, instead, when creating a new “Mini Site” you are invited to choose a skin, and this skin is copied/pasted inside the Mini Site. Then the Mini Site owner is able to change the mini site skin by himself.)

ROADMAP :

  • Plone 4 version (feb 2010)

  • Replace Archetypes Schema with a zope3 schema for skin data (no planning for now)

Changelog

1.1

  • fix small IE bug in skin view template

1.0

  • Added the ability to overload some static viewlets (logo, footer, colophon) with phantasy skin edit form

  • Added the ability to hide/show dynamic viewlets with phantasy skin edit form

  • The ATFolder schema extender is now using IBrowserLayerAwareExtender, the extender will be only available if collective.phantasy is installed in Plone

  • Added ISkinnableRoot interface, used to get skin inside a folder which implements it

  • remove dependency to plone.browserlayer (included in plone 3.1)

  • referencebrowser overload to avoid errors when searching for folderish content types

  • refactoring for i18ndude utilisation

  • i18n french added (work in progress)

  • Added screen shot field for skins

  • Added tests for viewlets overrides (static and dynamic)

  • Fix links classes order

  • css links changed (icons links doesn’t exist anymore in plone 3.3+)

  • skin view simplified

0.9

  • Fixed a new security issue in cases where some sites use a specific intranet-style workflow. (thx to Kamon Ayeva)

0.8

  • fix permission for phantasy viewlet zope.Public is more appropriate : avoid Unauthorized exceptions in some cases

  • fix version to 0.8

  • synchronize setup.py version with metadata.xml

  • fix doctests when using IPython

  • fix Manifest.in to avoid errors with docs folder in zip package

0.7

  • avoid acquisition problems for css images when skin is created in portal_factory, in this case css_url = portal_url

  • fix css content type when uploading a tgz or zip file

0.6

  • Manifest.in was missing at root : fix big problem with “python setup.py sdist” when using collective.releaser 0.6.1, only “.py” files were released

  • Fix ATContentTypes AutoOrderSupport import error with last ATContentTypes version

  • check_id script overload in PhantasySkinImage content type because we want to be able to overload portal_skins images when using the classical Plone edit forms

0.5

  • Fix stupid syntax error in folderskinview.py Catalog reequest was broken

  • Fix strange plone behavior : portal_properties.site_properties.getProperty(‘myproperty’) returns ‘n’ + property value + ‘n’ when myproperty is a string Perhaps we must do someting else ?

  • Tests were broken : a memoize decorator was missing in viewlet

0.4

  • added a safe_hasattr to test ‘getCssfile’ attribute in viewlet.py (avoid errors in rare situations)

  • changes ‘portal_type’ catalog request for ‘object_provides’ to get portal dynmaic skin

  • phantasy css view uses a dtml file more readable than zpt

  • phantsy css view uses ResourceRegistries CSSPacker tool

  • fix error in atphantasy schema : plone-overloads fields were invisible

  • move plone-overloads fields at bottom in atphantasy schema

  • patch form_tabbing.js to get standard behavior in edit form when tabs > 6

0.3

  • fix an error in path search term for catalog search

  • fix running doctests when config is patched by another product.

0.2

  • added all dependencies in setup.py since SmartColorWidget is now an egg.

  • added plone products dependencies in metadata.xml profile

  • removed import-steps.xml, importSteps handler added in profile.zcml

0.1

  • Initial release

TODO

  • Waiting for Deco improvements to make a really cool product

  • At this time all standard skin images are overloaded though css when these images are present in skin, excepted for portal_type icons, since generated.css is no more used in Plone. So we must patch getIcon method to get thes icons from phantasy skin if these icon exists.

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.phantasy-1.1.zip (129.1 kB view hashes)

Uploaded Source

Built Distribution

collective.phantasy-1.1-py2.4.egg (154.5 kB view hashes)

Uploaded Source

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