Welcome Guest, Not a member yet? Register   Sign In
SEO implement?
#4

[eluser]pickupman[/eluser]
Taking the idea from Phil Sturgeon's PyroCMS and similar feature in Wordpress, is create a slug field. When I create a new article, I have the slug auto generated from the title of the post. I check the DB if slug already exists when saving the page. Then I use the route
Code:
$routes['blog/(:any)'] = 'blog/view/$1';

Then in my blog/post method I first lookup the slug parameter in the DB, and if nothing is returned I check for a post id. If that fails, I just load the default "home" slug.


Messages In This Thread
SEO implement? - by El Forum - 04-27-2010, 06:39 AM
SEO implement? - by El Forum - 04-27-2010, 07:12 AM
SEO implement? - by El Forum - 04-27-2010, 07:50 AM
SEO implement? - by El Forum - 04-27-2010, 07:58 AM
SEO implement? - by El Forum - 04-27-2010, 08:06 AM
SEO implement? - by El Forum - 04-27-2010, 08:18 AM
SEO implement? - by El Forum - 04-27-2010, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB