-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New seo url #15
Comments
Hi Kaan, i'm add new function sed_translit_seourl() and option in config seditio for generate seo urls |
Please, see main.lang.php $sed_translit = array( these are the rules for the Cyrillic alphabet, for Turkish characters you can add your own $sed_translit = array( |
Can you do it for forum threads too? |
let's do it like this please
function seoLink($str){
$preg = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#', '.');
$match = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp', '');
$perma = strtolower(str_replace($preg, $match, $str));
$perma = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $perma);
$perma = trim(preg_replace('/\s+/', ' ', $perma));
$perma = str_replace(' ', '-', $perma);
return $perma;
}
$pag['page_pageurl'] = (empty($pag['page_alias'])) ? seoLink($pag['page_title'])."/".$pag['page_id'] : sed_url("page", "al=".$pag['page_alias']);
output
https://www.seditiocms.com/seditio-175-turkce-php-7x/69 page_ id
Everyone uses mobile devices nowadays, can you make the themes mobile-friendly?
The text was updated successfully, but these errors were encountered: