Skip to main content

News Item content type for Kotti.

This package provides:

  • a NewsItem content type that is just a Document with a different default view,

  • a RecentNews widget (that can be assigned to a slot) showing (by default) the 5 most recent, published NewsItems and

  • a all_news view that shows all News Items in your site, chronologically ordered.

Find out more about Kotti

Setup

To activate the kotti_newsitem add-on in your Kotti site, you need to add an entry to the kotti.configurators setting in your Paste Deploy config. If you don’t have a kotti.configurators option, add one. The line in your [app:main] (or [app:kotti], depending on how you setup Fanstatic) section could then look like this:

kotti.configurators = kotti_newsitem.kotti_configure

Configuration

If you want the RecentNews widget to show up in your site, you have to add a line like this:

kotti_newsitem.widget.slot = right

The for a list of available slots in a default Kotti site see the kotti.view.slots API docs

To change the default number of news items shown in the widget (5), add a line like this:

kotti_newsitem.widget.num_news = 10

Changelog

0.1

  • Initial release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kotti_newsitem-0.1.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file kotti_newsitem-0.1.tar.gz.

File metadata

  • Download URL: kotti_newsitem-0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kotti_newsitem-0.1.tar.gz
Algorithm Hash digest
SHA256 d87085d3884623b88f4d0cb5ee8b259e4884c86672a3d6f2f98452df0786481c
MD5 7e64c04959e5e92ea60ffebaf7267296
BLAKE2b-256 b968dd2b17c2587fb138ba6c7459fc2644058b7544ae76cd5e329b503a4db637

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page