Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make requestParamName used in WidgetContent::getFrontendRoute configurable #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

handcode
Copy link
Member

Currently, only a simple route 2 route mapping for "view in frontend" links generated in models\crud\WidgetContent::getFrontendRoute can be defined via Module::frontendRouteMap.
However, the requestParamName is hardcoded to pageId.

This PR:

  • allows the default (pageId) to be overloaded via Module::frontendDefaultRequestParamName
  • to define the requestParamName per route in Module::frontendRouteMap via subarray.

If the new "features" are not used, the behavior is 1:1 as before the change.

…rable via Modul::frontendDefaultRequestParamName or Modul::frontendRouteMap subarray
@handcode handcode requested a review from eluhr June 25, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant