Content Representation on second level

Hi,

’Content Representation’ is a good thing to represent your content in a different format. I use it to serve an RSS file.

Actual I want to serve an ics-file for a single appointment. My first idea was to use the Content Representation too, but I have a problem to get the right information from the second level.

Content Representation runs for me only with the first level from the content folder. For example:

/content/01_concerts/concert.txt

The corresponding representation file is concert.ics.php which is saved in the template folder.

The concert.ics file is reachable with my.domain/concert.ics

But I need the information by every single event within the 01_concerts folder, the second level.

My idea was to create the representation file with event.ics.php, because the Kirby page content file for every single event has the file name event.txt. For example:

/content/01_concerts/01_prince/event.txt

The URL to download the ics file would be my.domain/concerts/prince/concert.ics

But this is not running or supported.

My question is, how can I reach the informartion on second level with the ’Content Representation’ approach?

The correct Url associated with this content representation would be https://my.domain/concerts/prince.ics, you always attach the representation extension to the standard url of a page.

Thanks, it works.