5 Block Projects index
Robin edited this page 2026-11-22 19:52:13 +01:00

Projects index

A grid of cards, one per project, for a catalogue page. New projects join the grid by themselves once visible.

Each card shows the project's image (see Projects: chosen, repository banner, featured image of its page, default image, else its initials), its name, its excerpt, its latest version, date and licence, and:

  • Discover: the project's presentation page;
  • Download: the latest release;
  • Source code: a discreet link under the buttons.

The image and the name lead to the presentation page, else to the repository; the repository stays one click away through Source code. A presentation page counts once it is published.

When a project's For field is filled (see Projects), its card adds "For: restaurants, bars, cafés" under the excerpt.

Grid, or sections by category

  • Grid (default): every card in one grid, with the filter by category above it. With Filter by category on, a click shows only that category's cards, at once. The address follows (?pc-category=themes), so a filtered catalogue can be shared or linked from a menu. Without JavaScript, the link reloads the page already filtered.
  • Sections by category: one section per category, each with its title (H2 by default) and its cards, in the order of the categories in Settings. A category without any project is left out. Projects without a category close the page under Other projects. The cards' titles always sit one level below the section titles.

The categories are set in Settings and given to projects in Projects.

Tick Feature this project in a project's window, give it a lead sentence and a few points, then turn on Featured projects first in the block. Featured projects open the block, one large card each, with the picture beside the text on a wide screen: title, lead sentence (else the excerpt), the points as a list, then the version, the buttons and the source code link. They are not repeated below, and stay visible whatever the filter. In sections, their title is at the level of the section titles.

Image side puts the picture on the left (default) or on the right of every featured card, or alternates, starting on the left or on the right: with several featured projects one under the other, the pictures then take turns. On a narrow screen the picture stays above the text, and screen readers read every card in the same order.

Settings

Projects

Setting Default
Order Order set in Pluginception or Name, or Latest release first
Columns 3 1 to 4; fewer on small screens
Card size Compact or Large
Presentation Grid or Sections by category
Level of the section titles H2 sections only; H2 to H4
Filter by category on grid only
Featured projects first off
Image side Left featured projects only; or Right, Alternating, starting left, Alternating, starting right

Order set in Pluginception uses each project's Order field (smaller first); projects without an order follow, by name.

Cards

Setting Default
Image on
Excerpt on
Who it is for ("For: …") on (shown when the field is filled)
Version of the latest release on
Date of the latest release on
Date shown as Time since ("3 days ago"), or Date
Licence on
Discover button on (shown only for projects with a presentation page)
Download button on
Source code on
Heading level H3 (H2 to H4; below the section titles in sections)

Categories: all, or the ones you tick. Projects shown: all, or the ones you tick.

Version and date

Under the excerpt, each card shows the version of the latest release, its date and its licence: Version 1.3.0 · 3 days ago · GPL-2.0-or-later. A project without a release shows Work in progress: no release yet instead.

Time since reads "yesterday", "3 days ago", "2 months ago", in the language of the page, and the exact date shows when the pointer rests on it. It is counted in the visitor's browser, so a page kept in a cache stays right. Without JavaScript, and in the editor's preview, the exact date is shown, in the site's date format (Settings → General).

Hidden projects, and projects no longer on the forge, are never shown.

Speed

The grid is built from the site's database in two queries, whatever the number of projects. No forge is asked anything while the page is viewed.