Hey all,
I have been working with EE for a little while and just made the move to EE3 for my new website. I had a question about segment routing. I am making a website where there are numerous geographical locations (this is dynamic and more will be added over time) which all need pages and sub-pages.
www.domain.com/newyork www.domain.com/london www.domain.com/chicago www.domain.com/chicago/services www.domain.com/chicago/restaraunts www.domain.com/chicago/blog
As segment_1 refers to the location, I can’t really make template groups. I was going to do all the routing inside the home index.html:
{if segment_2 == ""} // embed the homepage for the location stipulated in segment_1
{if segment_2 == "blog"} // embed the blog for the location stipulated in segment_1
But when I try to do things like this I get 404 errors. Can I have all the template routing going through the home index.html or will I have to get more creative. Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.