Hi everyone,
I am just starting out with EE, and I like results it can achieve.
I am in the process of converting an old, reasonably sized site with static pages into EE.
It currently has articles in the format:
http://www.example.com/articles/index.php
http://www.example.com/articles/category_name/index.php
http://www.example.com/articles/category_name/article_title.php
My solution thus far, is as follows:
1. Create an ‘articles’ channel.
2. Create a ‘articles’ template group.
3. I have created a template called ‘category_name’ which embeds a different template ‘controller’ (as all categories will behave the same).
4. The ‘controller’ template uses segments to determine what’s being requested and either embeds an article template or embeds an article index template.
5. The ‘article’ template starts out like this:
{exp:channel:entries channel="articles" url_title="{segment_3}"}
{if no_results} {embed="includes/404"} {/if}Finally, to my question!
Does this make sense? Is this the most sensible way to acheive what I’m after? I know EE is very flexbile and I don’t want to find out later I have massively over engineered a solution.
I will most probably change the URL format for new articles but for search engine reasons the old article must resolve to their old URLs.
Thanks in advance for any feedback and advice. 😊