lochmueller / calendarize

📆 Best TYPO3 Calendar ever 📆
http://typo3.org/extensions/repository/view/calendarize
75 stars 84 forks source link

How to add an additional mode, i.e. "event list with full details"? #740

Closed artus70 closed 7 months ago

artus70 commented 1 year ago

I would like to offer an additional view mode: Show the full event details in the list view, so that no link to the detail view would be necessary anymore. How can I achieve this? I don't want to overwrite (replace) the existing list template, as I would like to continue using it in this way, too.

Of course, this requires a customised template, a combination of list view and detail view. But how to integrate it?

I know that this will lead to a repeated display of the same full texts when having an event series. But that's not my problem, it's the editors' problem.

lochmueller commented 1 year ago

Hey @artus70 could you change the Template Path for the specific page via TS and overwrite the Templates just for your usecase? I think this is the easiest option (could not controlled by an editor).

I think it is no "new view", because it is just a list with more information of the model.

Regards, Tim

artus70 commented 1 year ago

Hi Tim,

I already thought about that option but actually I need indeed both variants of the list view in parallel to generally offer them to all of our BEusers. In some case the second variant may be better than the "normal" list view, in some other not.

[Edit] ... and I can't manage to support it by activating an overwrite template each time, it should be usable as "self service".

Regards, Volker

lochmueller commented 1 year ago

Hey @artus70 ok. Then I suggest: Extend the flexform configuration with an additional field like "settings.layout". All settings are path trough to the template. In the template, you can evaluate the new setting variable and render an alternative list view. Then the editor can control the different view by setting the "settings.layout" checkbox (or select box). Regards, Tim

okmiim commented 7 months ago

Just for completeness: