Actualités

Shedding light on the news within LionsBase (and TYPO3)…

Dates

Avant toute chose, une actualité peut avoir 4 dates différentes :

  1. Champ « Date & Heure » : c’est la date de l’actualité.

  2. Date d’archive : après cette date, l’actualité n’est plus considérée comme « suffisamment nouvelle » et on part du principe qu’elle n’est plus affichée dans les actualités récentes. L’actualité est en revanche toujours visible si vous connaissez son URL ou si vous affichez une liste d’anciennes actualités (comme les « archives »).

  3. Date de publication. C’est exactement le même champ que la « Date de début » pour les enregistrements TYPO3. Avant cette date, l’actualité ne peut simplement pas être affichée du tout.

  4. Date d’expiration. C’est exactement le même champ que la « Date de fin » pour les enregistrements TYPO3. Après cette date, l’actualité « ne peut simplement plus » être affichée.

Tri

You may wonder how news are typically sorted (this may be changed in the news plugin). By default, news are sorted by their « Date & Time » field, that is the « date of the information » and by priority.

What is the priority? You see the checkbox « Top news » when editing a news record? This is used to mark the corresponding article as « more important than the others ». As such, when showing latest news, you first see « Top news » records (sorted by date) and then you see the other default-priority news records. You could think of « Top news » as « sticky posts » on some social platforms for instance. It is best not to abuse the number of priority news you have.

LionsBase Mobile

LionsBase mobile is fetching latest news from a given set of « sources » (Club news, Zone news, …). The default set of sources has been prepared for each every member according to their club. The member may then freely configure their mobile app to fetch news from any other set of sources. If you happen to remove every sources in your preferences, then the default set is configured again.

LionsBase mobile is fetching news records from the LionsBase API. This API has some hardcoded settings:

  1. Les actualités archivées ne sont pas retournées

  2. Pas plus de 30 actualités sont retournées

  3. Aucune actualité plus ancienne que 180 jours (= 6 mois) ne sera jamais retournée

So the workflow to return news for the dashboard is:

  1. Fetch every non-archived news from the configured sources of the member

  2. Filter out news older than 180 days

  3. Sort the set by priority and then date

  4. Prendre jusqu’aux 30 premières nouvelles les plus importantes

Documentation created using Sphinx 4.3.2 and integrated in TYPO3 with restdoc.