• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 04:12 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 04:29 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 04:38 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 05:03 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 05:18 PM
Rewrite url or use routing - by El Forum - 03-02-2012, 07:13 PM
Rewrite url or use routing - by El Forum - 03-03-2012, 02:22 AM
Rewrite url or use routing - by El Forum - 03-03-2012, 09:55 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.