Questions tagged [routes]

Questions about how Craft handles a request.

Filter by
Sorted by
Tagged with
4
votes
1answer
105 views

Bullet-proofing tags with punctuation

I have a route set up with a tag: news/tag/[tag] => news/_tag How do I generate urls that will match that route for all possible tags (including tags with punctuation)? How do I resolve that url ...
4
votes
1answer
497 views

New route for entry types

I would like to create a route for the entry types of a specific section, pointing to a single template. Is it possible to do this automatically? So far I haven't had luck, I'm thinking something ...
3
votes
1answer
731 views

Multiple entry templates per entry

Is there a way to have multiple entry templates per entry? I'd like to create two different templates that display the same content/data in different ways.
4
votes
1answer
1k views

Is the "registerSiteRoutes" hook screwing up my template path?

This may be a bug... I have a controller action which has been working great. It's a simple action with a single purpose... load a template with an internal value. public function actionMyAction() { ...
3
votes
1answer
109 views

Where do I begin troubleshooting a Form in Craft that is redirecting to /login on iPad and iPhone?

I'm not sure how to ask this question. I have a form. It works just fine on desktops. However when the form is submitted on iPhone or iPad it never makes it to my controller and resolves to the URL /...
2
votes
2answers
776 views

Best approach for building a webshop with more than one URL to the same product (entry)

What would be the best approach to a webshop in Craft, for solving the possibility of having products on more that on URL. Is there a best practice for one entry being accessible from more than one ...
8
votes
1answer
1k views

How do I handle named route variables passed to a controller?

I'm writing a plugin that uses the registerSiteRoutes hook to create some new routes, and passes those routes to some controllers. In these routes, I have a few pieces of the URL that I'm capturing as ...

1 2 3
4