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 · 156 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 days ago
2 79 2 days ago
General · by Andy Miller, 6 days ago
0 144 6 days ago
General · by Veehem, 1 week ago
0 144 1 week ago
General · by milkboy, 1 week ago
0 138 1 week ago
General · by ian russell, 2 weeks ago
2 225 2 weeks ago