Hello together,
i’m aware this topic is quite often discussed, and also the video from Dmitri was quite interesting. (See here).
But i’m wondering how this is being done is 2023. I’ve done and created quite some simple NodeTypes, kinda understood how it works but never went any deeper as having some Collections and nested elements. To formulate this question to the forum probably helps me already to understand it more by myself
My basic issue is trying to understand how i can develop a simple list of news in sence of the following navigational structure:
-- 1. Home
--- 2. News
--- 3. NewsElementWithNiceURI
1. Home: Just the start page
2. News: Page where i want to add the news elements as a teaser, just some properties as e.g. title, date, some text and a picture. I thought about a filter of elements as e.g. using something like ${q(site).find('[instanceof Vendor.Page:NewsItem]').get()}
and Looping them trough Neos.Fusion:Loop
3. NewsElementWithNiceURI: Based on the title of the news, the URL is generated. Holds the detail part of the news with some more properties as e.g. text and more pictures.
The part(s) where i’m struggling at the most:
- How do i enable a pagination for the News, where i limit the elements on each page to e.g. 5 items.
- How/Where do i structure/store the News Items. As they should not appear in any Menu, but just as a link in my News List.
- I’m using afx, so the examples from the linked thread (from 2017) are not that much helpful. I’m looking forward for some more modern examples, also for a possible compatibility for the upcoming neos versions.
Any resources, hints or recommendations on how to start are helpful. I want to avoid using ready made packages, as i think it is not to complex to archive this (and i want to prevent having more dependencies).
Thank you a lot already!
Greetings!