Allow Parameterizing Routes in routes.php #10789
Unanswered
engram-design
asked this question in
Ideas
Replies: 2 comments 3 replies
-
Yes that’s already possible. Any params that were matched from the URL pattern will be available as template variables, e.g. |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'd really love to see this implemented! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We often want to setup routes for account pages, but because these aren't entries, we need to setup custom routes. Take the following route rules into consideration for being able to edit a Campaign on the front-end.
Here, we want to allow user to edit their campaign from the front end, hence the
campaigns/edit
template. But because a campaign has lots of content, we want to break it up into different templates and routes. You can see these additional templates.What would be amazing is to support Yii's Parameterizing Routes with templates, as they do for controller actions.
Then we could do something far more efficient like:
Is this possible now, and if not - do you think this makes valid sense? Or just let me know if I'm going about this the wrong way.
Beta Was this translation helpful? Give feedback.
All reactions