Last active
December 22, 2015 04:29
-
-
Save sergiois/6417629 to your computer and use it in GitHub Desktop.
Quitar id en urls amigables de Joomla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Editar fichero components\com_content\router.php | |
// Dentro de función ContentBuildRoute(&$query) | |
// Cambiar $advanced = $params->get('sef_advanced_link', 0); por | |
$advanced = $params->get('sef_advanced_link', 1); | |
// Dentro de función ContentParseRoute($segments) | |
// Cambiar $advanced = $params->get('sef_advanced_link', 0); por | |
$advanced = $params->get('sef_advanced_link', 1); | |
// Comentar las siguientes líneas (228 hasta la 232) | |
/*if (strpos($segments[0], ':') === false) { | |
$vars['view'] = 'article'; | |
$vars['id'] = (int)$segments[0]; | |
return $vars; | |
} */ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment