I am developing a site where I need to manage the URLs like:
http://www.site.com/CATEGORY-URL-TITLE : To show the the entries of that category in segment 1
http://www.site.com/CATEGORY-URL-TITLE/ENTRY-URL-TITLE : To show the individual entry of category in segment 1.
http://www.site.com/MEMBER-USERNAME : To show all the entries of authored by member in segment 1.
http://www.site.com/MEMBER-USERNAME/ENTRY-URL-TITLE : Individual entry of that member.
Could you please anyone give me some guideline how can I manage the URL structure like that. Please let me know if there is any third party addon which can do it.
Actually, I wouldn't like to make any changes into home template for having so many conditions for checking categories or username. So looking for some technique if another template (not home template) can be rendered for such type of URLs. I think, it would be possible with sessions_start hook but still couldn't find how to route or render a template for such type of URLs.
For example, for URI like /member_username/xyz would route/render the template template_group/template_name. As with the hook sessions_start, I would be able to check if first segment is any member's username.
I hope, it would give some more idea to share your solutions.