Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Using a flex-object to dynamically create a page

Started by Jan 2 years ago · 0 replies · 422 views
2 years ago

I've been working on this problem for a long time and have not found a solution yet. I use flex-objects to create events and display them chronological, which works fine. But I would like to be able to click on an event and to be its own page with further information and a form to sing up for.

So far I have managed that the title of each event acts as a link, which looks like this:

TWIG
<h3 class="titel">
            <a class="seminar-link" href="{{ base_url }}/seminare/{{ object.url }}">
{{object.titel }}</a>
</h3>

this does open a page with the correct url, but it only displays 'Error!' and I could not come up with an idea how to solve this or work around it.

Thanks in advance for any help.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 39 16 hours ago
General · by Hanns Mattes, 1 week ago
0 119 1 week ago
General · by Karmalakas, 1 week ago
2 184 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 234 3 weeks ago
General · by Dima, 4 weeks ago
1 210 4 weeks ago