Welcome Guest, Not a member yet? Register   Sign In
CMS site url


First, why: https://en.wikipedia.org/wiki/Permalink
Search the internet with the word pair CodeIgniter permalink
For generation of the corresponding slugs the function url_title() might help you. For slugs derived from non-English, maybe you will have to consider to apply transliteration to ASCII first.

Slug generation could be automatic, human touch could be added also. New generated slugs should be checked for uniqueness and modified when it is needed to avoid collision.

If your site is going to be multi-lingual, see this discussion: http://stackoverflow.com/questions/21985...e-websites My personal choice is different slugs for translated pages (plus the language segment).

About how to store the relations page_id <-> slugs: Most of the solutions I've see rely on manipulation of routes.php. There data could be taken from a preliminary generated file or from database. Other possible way which I use is extension of the CodeIgniter's router class, reading from the database, and implementation of the lookup logic there.

Links like https://www.ttgmedia.com/news/news/fco-u...tacks-1588 would simplify the logic, because the page_id is included, but for my needs I avoid them, because I don't consider them as permalinks. I prefer links without page_id like this one: https://www.ttgmedia.com/news/news/just-...ilm-makers

Good luck.

Messages In This Thread
CMS site url - by muthu - 11-16-2015, 05:49 AM
RE: CMS site url - by PaulD - 11-16-2015, 08:25 AM
RE: CMS site url - by ivantcholakov - 11-16-2015, 12:16 PM
RE: CMS site url - by ivantcholakov - 11-16-2015, 12:51 PM

Theme © iAndrew 2016 - Forum software by © MyBB