For a particular reason, I need to keep in the SEF URL only the alias of the item to have a URL like this www.mywebsite.com/**myItemAlias** but of course without creating a direct menu to the item because I need it to be automatic. My router code : // No direct access to this file defined(‘_JEXEC’) […]
Categories
Router, keep only item alias in SEF URL
- Post author By Ask Me
- Post date November 28, 2020
- No Comments on Router, keep only item alias in SEF URL
- Tags '-', 'id'); if($id) { $vars['id'] = $id; } }, $category = false, $main = 'wm') { if(!$where || !$what || !$whereString) { return false; } // Get a db connecti, $query['id']); if (count($id) == 2) { $segments[] = $id[1];, $segments[$count-1], $segments[$i]); } return $segments; } /** * Parse the segments of a URL. * * @param arra, $tables)) { $getTable = '#__'.$main.'_'.$table; $query->from($db->quoteName($getTable));, $what = null, $where = null, $whereString = null, alias, For a particular reason, I need to keep in the SEF URL only the alias of the item to have a URL like this www.mywebsite.com/**myItemAlias** but of course without crea, I think we need to change here : //Handle View and Identifier switch($segments[0]) { case 'webcasts':, operator