Search
Other Articles Anywhere questions
Forum

Event layout with table for each month

Yannick Lämmel's Avatar Yannick Lämmel
Hi,

I have multiple events with custom fiels. One field of course is the date the event takes place.

Now I want to create a table for each month with its own head and body but only for months where there is an event.

The result should be something like this:


Is this possible to achieve with articles anywhere? The layout of the table itself is no problem to me, but the separation by the month.

Maybe someone can help me with this.

Kind regards,
Tanja
Peter van Westen's Avatar Peter van Westen ADMIN
That is currently not possible unless you store the month value in a separate field.
Please post a rating at the Joomla! Extensions Directory
Yannick Lämmel's Avatar Yannick Lämmel
Hi,
and if I had the month value in a separate field, how would I loop through the months to use the value as the head of the table so that I don't have to write
{articles month="Januar 2023" ... and so on for every month.
Peter van Westen's Avatar Peter van Westen ADMIN
You could do something like:
{articles ...}

{if month != previous:month}
...HTML for the new header...
{/if}

...
{/articles}
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription