Skip to main content

collective.skinny

What is Skinny?

It’s a package to help you get started quickly with developing a seperate, public-facing skin for your Plone site. It’s been described as being vastly easier than skinning Plone the conventional way. But it also has a few drawbacks; one being that you can’t use it for community sites where people other than your site editors log in and modify content.

If you’re struggling with skinning your Plone site, do try it out and give feedback. The package comes with an example skin that shows you how it works.

Skinny has been discussed here:

Usage

Look at the package’s configure.zcml file for instructions on how to activate the public skin to actually see it.

This package is both an example and a library. The easiest way to start using it is to just copy the package and modify.

The better way is to use it as a library and extend it with your own package. When doing so, you’ll probably want to start out by subclassing and overriding through ZCML the main view, which lives in main.Main. Look at the configure.zcml file for pointers.

To get started, look at the templates/ directory. The main.pt template is where everything is wired together. You can render other templates in the same directory by saying view/render_spam, which will render the spam.pt template.

Writing views for content objects works similarly. Look at templates/content/document.pt to see how this can work. This template is found and used because it corresponds to the portal_type of the content object you’re displaying. Thus, you can make your own view for Smart Folders by putting a topic.pt template into the same directory, to give an example. If no content view is found, we’ll try and display Plone’s default view for you.

All of Plone’s views such as @@plone_context_state and friends are available as usual in templates. In addition, there’s a handy shortcut for looking up tools: Using view/portal_spam will return the portal_spam tool from your Plone site. (Try view/portal_url for a working example ;-).

Screenshot

The example in this package looks something like this:

http://danielnouri.org/media/acme-website.png

Feedback

We’d like to make this package work as easy as possible for you. Let us know if you have any comments or questions by using the Plone User Interface & Design or the Plone Add-on Product developers list.

Thanks

The following people helped with support, code, patches, etc:

  • Martin Aspeli

  • Pelle Krogholt

  • Shane Graber

  • Sylvain Viollon

Changelog

0.5 - 2009-04-20

  • Allow any non-HTML resources from Plone to be served. The previous “no leak” fix turned out to be a bit too strict, e.g. it wouldn’t allow images from content to be served in the public skin.

  • Patch site_properties to return the empty list for typesUseViewActionInListings so that images and files don’t get a /view at the end when looking at the public skin, and thus can be skinned with Skinny. To make you own view for images, add a templates/content/image.pt.

0.4 - 2009-04-16

  • Don’t leak Plone views like folder_listing anymore in the public skin.

0.3 - 2009-01-26

  • No longer require python: statements for rendering parts; use view/render_$part.

  • Make portal tools available through view/portal_url and the like.

  • Add a render_viewlet convenience function to base.py that allows the reuse of Plone’s viewlets in the public skin. Look at main.MyNavigation for a usage example.

0.2 - 2009-01-22

  • Instead of displaying the login form when an Unauthorized error is raised, display a 404 page in the public skin. This will make pages like /edit invisible.

0.1 - 2009-01-22

  • Initial release

Metadata

Release files for collective.skinny 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.skinny 0.5
File Size Uploaded Provenance Actions
collective.skinny-0.5.tar.gz 20.7 kB Without provenance Details for collective.skinny-0.5.tar.gz

Release files / collective.skinny-0.5.tar.gz

Download URL collective.skinny-0.5.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
81321009f13438c056983420381e9b7eeb626db10388d8783ae5a99271933778
BLAKE2b-256 checksum
How to use checksums
76cb05bf03a335430e94c7743a1ff815a7c17622684fcaffb753adeb1fba4464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.skinny 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page