Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Using a flex-object to dynamically create a page

Started by Jan 2 years ago · 0 replies · 187 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 311 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 265 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago