inspiredminds / contao-sibling-navigation

Provides a previous/next navigation for news & events.
GNU Lesser General Public License v3.0
6 stars 0 forks source link

Feature: Keep query parameters #4

Open joehi opened 5 years ago

joehi commented 5 years ago

It would be nice to have in option to keep certain query parameters.

I have something in mind like at the package changelanguage where I have a field Keep query parameters.

The description could be: "Enter a comma separated list of query parameters that should be kept when linking."

An usecase would be to control with a query parameter whether to show or not show additional information like a map on the reader-page. I would like to reference for such a scenario to a discussion in the Contao-forum.

fritzmg commented 5 years ago

Hm, well you could also add the necessary parameters in your own template.

joehi commented 5 years ago

Thank you for the hint. I will try it that way.

joehi commented 5 years ago

I created my own mod_sibling_navigation__modified template but I cannot select it from the "Custom module template" dialog. The selection stays empty. How can I select my own template?

fritzmg commented 5 years ago

Hm... try with mod_sibling_navigation_events_modified.html5 for example.

joehi commented 5 years ago

Thank you. Now I could select it. I did not expect that I would have to add something to the official name to make it show up in the dialog.

fritzmg commented 5 years ago

Yeah it's a special case. It's two different modules - but only one template. To select a custom module template in Contao 4.4+, you need to name the template according to the module name.