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 ftw.contentpage

How to install ftw.contentpage

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install ftw.contentpage
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
1.3 Available View build log
Linux (32-bit)
1.3 Available View build log
Linux (64-bit)
1.3 Available View build log
 
License
GPL2
Depended by
Lastest release
version 1.3 on Jun 16th, 2013

Introduction

ftw.contentpage provides some content types optimized for organisations, communities, associations, and more.

It uses simplelayout to manage and display the content.

Installing

  • Add ftw.contentpage to your buildout configuration:
[instance]

System Message: ERROR/3 (<string>, line 17)

Inconsistent literal block quoting.

eggs += ftw.contentpage

  • Install the generic import profile.

Usage

Types:

  • ContentPage: Folderish type for the site structure. Contains the blocks
  • AddressBlock: AddressBlock contains address informations and it uses ftw.geo to render a map
  • ListingBlock: A folderish block, which lists files and images by default. Two block views are provided: Tabular listing and a gallery view. The columns of the file listing are configurable per block. The default set of columns is configured through the the registry (plone.app.registry). The default sort order of the Listingblock file listing can be configured per block.
  • EventPage / EventFolder: A simple and minimal event implementation based on a ContentPage.
  • News / NewsFolder: A simple news implementation based on a ContentPage.

Special views:

There's a two-column and two-level overview called authorities_view, which displays a list of ContentPages with an AddressBlock. If an AddressBlock is added to a ContentPage, it adds a marker interface on the ContentPage, so it's easy to recognize ContentPage's containing an AddressBlock.

The EventFolder has a simple events listing, which shows the next 10 upcoming events (batching included).

The NewsFolder has a simple news listing, which shows the 10 most recent news entries (batching included).

ContentListing viewlet:

The content listing viewlet is registered for all ContentPages. It shows categorized subcontent, within the ContentPage The categorization is done by a schemaextended field, so it's also possible to categorize your own or any other content.

** Teaser Image ** All content pages, event pages and news are able to display a teaser image, which is stored on the content itself. It behaves like a regular block and shows also the description. The teaser image related fields have their own write permission, one per content type. Take a look at the rolemap.xml for details.

** Portlet ** It's possible to enable an archive portlet for News and EventPages. It only works if the current view is the news or event listing view. The portlet is not created by default.

Code example:

<class class="dotted.name.to.my.class">
<implements interface="ftw.contentpage.interfaces.ICategorizable" />
</class>

ftw.contentpage is using the additional slot provided by simplelayout (implements the IAdditionalListingEnabled interface of simplelayout)

So the layout has the following structure:

  1. Simplelayout main slot for blocks
  2. The content listing viewlet
  3. The additional slot for blocks

This way it's possible to display content below the content listing viewlet (by drag'n'drop)

ftw.lawgiver support

ftw.contentpage supports ftw.lawgiver

Check: https://github.com/4teamwork/ftw.lawgiver

Compatibility

Runs with Plone 4.1, 4.2 or 4.3.

Changelog

1.3 (2013-06-13)
  • Remove extraAdressLine from geo query.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Add ID as column to listingblock.

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

Bullet list ends without a blank line; unexpected unindent.

[jone]

  • Add review state as column to listingblock.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Added simplelayout summary view to display more details in contentlisting.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Register the IOrgUnitMarker interface so that it is avaiable in manage_interfaces.

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

Bullet list ends without a blank line; unexpected unindent.

[jone]

  • Suggest the parents title for addresstitle in addressblock.

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

Bullet list ends without a blank line; unexpected unindent.

Its the better way than just display it if no addresstitle is set. [Julian Infanger]

1.2.1 (2013-06-03)
  • Do not copy parent layout.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Fix off-by-one error in listingblock.

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

Bullet list ends without a blank line; unexpected unindent.

This caused that the listingblock was not displayed when only one item was in the listingblock and the block was not editable. [jone]

1.2 (2013-05-27)
  • Fix in news portlet. Use getObject instead of restictedTraverse(path).

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Do not show description field of textblock.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Use summary attribute in table instead of title.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Do not show the author in newslisting for anonymous user, if the property

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

Bullet list ends without a blank line; unexpected unindent.

allowAnonymousViewAbout is not true. [Julian Infanger]

  • Hide empty listing blocks for anonymous.

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

Bullet list ends without a blank line; unexpected unindent.

[jone]

  • Sort content categories alphabetical.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Fix content_categories index. Should be available on ICategorizable not

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

Bullet list ends without a blank line; unexpected unindent.

on IContentPage

  • Add ListingBlock and AddressBlock to addable types of News.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Added helper javascript for start and end date widget.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Fix news result quantity.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Add a configurable "Show more or show all News link" link into the footer of

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

Bullet list ends without a blank line; unexpected unindent.

the news portlet. It only shows up if there are news to show and if the "Show all news" box is ticked. [mathias.leimgruber]

  • Search News and Events recursively.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Change german transaltions.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Fix content type on text fields of address block: use text/plain as input type.

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

Bullet list ends without a blank line; unexpected unindent.

[jone]

  • News listing view: handle news without effective date.

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

Bullet list ends without a blank line; unexpected unindent.

[jone]

1.1 (2013-04-29)
  • Fixed condition for addrestitel in address templates.

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

Bullet list ends without a blank line; unexpected unindent.

[phgross]

  • Added publication date viewlet to news view.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Add custom date formatter for events.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Improve test coverage

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Make textblock title searchable.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Do not assign any workflow to TextBlock, AddressBlock and ListingBlock

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

Bullet list ends without a blank line; unexpected unindent.

Provide an upgrade step, which removes the currently assigned workflow. [mathias.leimgruber]

  • Fix AddressBlock FTI - Change (Default) alias to (dynamic view).

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Add more test for EventPage.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Add teaser image functionality for contenpage.

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

  • Browserviews should not be public.

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

Bullet list ends without a blank line; unexpected unindent.

[Julian Infanger]

  • Updated German translations

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

Bullet list ends without a blank line; unexpected unindent.

[phabegger]

  • Fill content-core slot instead of main slot and

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

Bullet list ends without a blank line; unexpected unindent.

show edit-bar. [mathias.leimgruber]

  • Add Event type.

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

Bullet list ends without a blank line; unexpected unindent.

[tschanzt]

1.0 (2013-04-10)
  • Init release

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

Bullet list ends without a blank line; unexpected unindent.

[mathias.leimgruber]

Subscribe to package updates

Last updated Jun 16th, 2013

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.