-) If anyone is using the lyftenbloggie component, and want to remove the component name and category title from the sef url, follow this hack:
(Note: You also need to install the lyftenbloggie extension for ARTIO SEF)
Under components/com_sef/joomsef.php,
After this code:
$location = array();
foreach ($title as $titlePart) {
if (strlen($titlePart) == 0) continue;
$location[] = JoomSEF::_titleToLocation($titlePart);
}
Just add this code:
if($location[0] == 'lyftenbloggie')
{
$temp_sef = end($location);
$location = array();
$location[] = $temp_sef;
}
This will change a sef url (created for the first time) from, say:
http://example.com/lyftenbloggie/sample-category/sample-article
to: http://example.com/sample-article
-) If you are using hwdvideoshare component in your site and have installed ARTIO SEF component and also its extension for hwdvideoshare, you can use the following hack to hide the video category in the sef urls.
if($location[0] == 'hwdvideoshare') { }
-) This technique can also be applied to modify other sef urls. For example, if you have an article titled "My
Videos" under a category "Demo Articles", then the default sef url that would be inserted would be:
"demo-articles/my-videos". So in order to change that, you can perform this hack:
if($location[0] == 'demo-articles') { }
Hope it helps someone out there.
(Note: You also need to install the lyftenbloggie extension for ARTIO SEF)
Under components/com_sef/joomsef.php,
After this code:
$location = array();
foreach ($title as $titlePart) {
if (strlen($titlePart) == 0) continue;
$location[] = JoomSEF::_titleToLocation($titlePart);
}
Just add this code:
if($location[0] == 'lyftenbloggie')
{
$temp_sef = end($location);
$location = array();
$location[] = $temp_sef;
}
This will change a sef url (created for the first time) from, say:
http://example.com/lyftenbloggie/sample-category/sample-article
to: http://example.com/sample-article
-) If you are using hwdvideoshare component in your site and have installed ARTIO SEF component and also its extension for hwdvideoshare, you can use the following hack to hide the video category in the sef urls.
if($location[0] == 'hwdvideoshare') { }
-) This technique can also be applied to modify other sef urls. For example, if you have an article titled "My
Videos" under a category "Demo Articles", then the default sef url that would be inserted would be:
"demo-articles/my-videos". So in order to change that, you can perform this hack:
if($location[0] == 'demo-articles') { }
Hope it helps someone out there.
Comments
Post a Comment