0

How would one use Template Routing to route this:

http://MYDOMAINNAME.COM/tournaments/public-schedule/archives/2014/10/

To a Structure template of my choosing? I have this currently set:

enter image description here

Which states:

GROUP: templates TEMPLATE: events

I want to route the Archives/year/month there then run a conditional that will display the low archive tag there. I know how to do this with CraftCMS, but EE's documentation really stinks regarding template routing and I can't find any good posts of this online either.

Thanks for the help community!

Cheers!

2

I wouldn't say the documentation stinks, there's an example near the top of the page under Usage close to what you want.

In your case, it looks like you probably want:

/tournaments/public-schedule/archives/{year:regex[(\d{4})]}/{month:regex[(\d{2})]}/

Then you will access your segment variables with {segment:year} and {segment:month}.

3
  • That did it! Appreciate the assist on this one! – Mark Busnelli Jr Aug 25 '14 at 16:52
  • You don't know off hand if you can have TWO routes for one template do you? – Mark Busnelli Jr Aug 25 '14 at 17:25
  • Sorry I don't. Haven't gotten that advanced with it myself. – Tyssen Aug 25 '14 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.