Only item alias in sef URL

23 views
Skip to first unread message

Laurent

unread,
Nov 23, 2020, 1:01:56 PM11/23/20
to Joomla Component Builder
Hello,

Would it be possible when SEF is enabled, instead of having URLs such as :
like this rather http://www.wesite.com/itemalias

In fact keep only the alias of the item.

Thank you for your help.

Laurent

unread,
Nov 25, 2020, 1:03:29 AM11/25/20
to Joomla Component Builder, Laurent
Hi, 
I think i need to modify this code in dynamic get but how ?

// default script in switch for this view
$vars['view'] = '[[[sview]]]';
if (is_numeric($segments[$count-1]))
{
$vars['id'] = (int) $segments[$count-1];
}
elseif ($segments[$count-1])
{
$id = $this->getVar('[[[sview]]]', $segments[$count-1], 'alias', 'id');
if($id)
{
$vars['id'] = $id;
}
}

((ewe))yn

unread,
Dec 19, 2020, 4:47:34 PM12/19/20
to Joomla Component Builder, Laurent
We are moving to GitHub Discussions. We will keep this open to give access to old issues, resolved. But please continue conversations on the new github discussions area ;)
Reply all
Reply to author
Forward
0 new messages