Welcome Guest, Not a member yet? Register   Sign In
Rewrite url or use routing
#8

[eluser]0v3rth3d4wn[/eluser]
Thank you all for the help and the tips, everything is now working well.
As for the removing the id-s in the url and replacing them with let's say the category name, the only thing that comes to my mind is using an extra unique field for each category(subcategory, product) entry. Let's say I have category with id:1 and name:clothing. I should create a field which will be also "clothing" and will be unique and I will use it as my link instead of the id.
If I am to have two categories with the same name(which won't happen but in the products it may) I should just check if such product exists and if it does I should add the same name with "-1" at the end of the string. I think this is something like a permalink or I'm wrong? Is this a good way to go? Thanks again!


Messages In This Thread
Rewrite url or use routing - by El Forum - 03-02-2012, 03:12 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 03:29 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 03:38 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 04:03 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 04:18 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 06:13 PM
Rewrite url or use routing - by El Forum - 03-03-2012, 01:22 AM
Rewrite url or use routing - by El Forum - 03-03-2012, 08:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB