Welcome Guest, Not a member yet? Register   Sign In
How handle multiplie categories on the site
#1

Hello everyone! In my development I using CI but this question more in common programming case

Imagine situation like we have a site and multiplie nested categories in it.

category1
category 1.2
category 1.3
category 1.4
category 1.5
category2
category 2.1

and so on...

In every category we have a posts. So question is what will be url of that posts?

for example if we have 3 or 4 nested levels it will be horrible URL, something like

categories/category1/category2/category3/post-name

Here we have some problems

1)To find url path for current post we need find all possible categories - what means few DB requests! Bad thing!

2)What if we have search on our site and in result page we have posts even from diff categories trees. For each post we need request DB for URL path of certain post!

So how you guys handle this?

Thoughts... Maybe for all posts create unique url and link to them will be something like /posts/post-url and not start with list of all categories!?


Please help! thanks
Reply


Messages In This Thread
How handle multiplie categories on the site - by scion - 09-17-2015, 04:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB