Skip to main content

Introduction

Every now and then users ask if they could somehow get a view which displays all the documents from certain folder structure at one page. Collective.printview is an answer to this request.

Collective.printview brings you @@printview view that you can call from every folderish object in Plone. This view is drop dead simple having only one task - dig deep through folder structure and search for content based on settings specified on collective.printview controlpanel. In controlpanel you can define which folderish content types collective.printview can use while it tries to dig deeper in folder structure. You can also define content types which are used for getting the actual content. Finally you can chooce workflow states which will be made available for this search for content.

For each object we’re going to pull content from, collective.printview expects to find these three mehtods:

  1. Title()

  2. Description()

  3. getText() OR text.raw

After @@printview has crawled through all the specified folders it returns plain page containing title, description and body text from all the objects it encountered. The resulting page contains some javascript magic which creates footnotes after each links and moves the actual links to page footer.

Usage

@@printview view can be used from folderish contents actions menu (where you can find cut,copy,paste,rename and delete actions as well). You can also manually type @@printview after the url.

Warning!

Usually we can get objects title and description from the catalog. This addon would be pointless if we couldn’t also get the actual bodytext. This is why collective.printview doesn’t play with portal_catalog and instead of that goes bravely with full objects. This is something that can have serious impact on your sites performance - especially if there are lot’s of folders and content objects under the context you’re using the @@printview. @@printview uses memoize to cache results based on a key created from printview settings and timestamp of a latest modification in the search context. This won’t save you on a first run though - you can’t say I didn’t warn you :)

Changelog

1.0.1 (2011-08-21)

  • Fixed problems with dependencies.

  • Fixed typos in README.

1.0 (2011-08-21)

  • Initial release

Metadata

Release files for collective.printview 1.0.1

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.printview 1.0.1
File Size Uploaded Provenance
collective.printview-1.0.1.zip 21.9 kB Without provenance Details

Release files / collective.printview-1.0.1.zip

Download URL collective.printview-1.0.1.zip
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eb232b94e47bc117ba701966a601cc067c0e5699a38dc676168962264a22c6d2
BLAKE2b-256 checksum
How to use checksums
a153aab89d13450d094e29c1f76efdd5e3e8eb8c5dc3cdd42c573910608aecd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.printview 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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