[opencms-dev] Listing articles order

Ramon Gavira Sáenz ramon.gavira at sagasoluciones.com
Fri Jan 3 09:16:17 CET 2025


You should take a look on this and understand this first:

https://documentation.opencms.org/opencms-documentation/template-development/detail-pages/

https://documentation.opencms.org/opencms-documentation/background/lists-and-detail-pages/index.html

There are few ways to implement lists an thye order depends on witch solution you choose.

Ramón.

________________________________
De: opencms-dev <opencms-dev-bounces at opencms.org> en nombre de Atle Enersen via opencms-dev <opencms-dev at opencms.org>
Enviado: martes, 24 de diciembre de 2024 01:06
Para: opencms-dev at opencms.org <opencms-dev at opencms.org>
Cc: Atle Enersen <atle.enersen at gmail.com>
Asunto: [opencms-dev] Listing articles order


Hello again.



My http://web.enersen.no/oc/ as you can see lists up latest articles, they are not in correct order. I want them to sort on date, not resource type the date. It is not date, but sequence of first, then second, before we jump to the next resource type.



The two on top is one resource type, the four next ones another.



I want to:



  1.  List articles by date/time.
  2.  List articles by priority, priority being a field in XML-configuration of the resource type. The priority field can be 0-100 with 0 as top. Priority can have several articles, and then the sorting secondly goes for date/time.



If someone could share with me the file(s) I should investigate I would be grateful.



Merry christmas, regards Atle.

--

Telefon: +47 48 06 31 71


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20250103/31733012/attachment.htm>


More information about the opencms-dev mailing list