Latest news. show wrong url - creating a subfolder
- Posted by Poloherb (1) Offline
Hi.
Great module but I have a problem with setting.
At the beginning I had a problem with thumbnail. In articles I have codes so do not load images for news thumbnail.
To solve the problem I added in the options add thumbnails to article. The case was resolved but temporarily.
I saw the last news changed address, by creating another subfolder + ID Article.
Joomla address link everything is okay.
But Last news link address is different and shows in the article photo. I want that picture is not visible.
I skipping that is a different address, did not bother me too much. Only image that shown in the article.
I checked not all addresses are changing.
cryptophysical.com/index.php/coins/satori-coin correct address in joomla menu
cryptophysical.com/index.php/coins/satori-coin/172-satori-coin address from Last news (172- ID article )
during writing I found a solution!!!!
remove ID from URL in Joomla
1. go to server FTP, Joomla! 2.5 lub 3.x.
2. go to folder: components/com_content/router.php.
3. copy router.php to PC
4.Edit router.php
linii 27 code:
$advanced = $params->get('sef_advanced_link', 0);
change to:
$advanced = $params->get('sef_advanced_link', 1);
around the line260:
$advanced = $params->get('sef_advanced_link', 0);
change to:
$advanced = $params->get('sef_advanced_link', 1);
around the line 282:
if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;
}
change to:
/*
if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;<b></b>
}*/
this is for Joomla! 2.5.
In Joomla! 3x z linii :
around the line 386:
->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));
change to:
->where($db->quoteName('alias') . ' = ' . $db->quote($segment));
Copy file back to the server: components/com_content/router.php.
9 years 1 month ago #1
by Poloherb
Great module but I have a problem with setting.
At the beginning I had a problem with thumbnail. In articles I have codes so do not load images for news thumbnail.
To solve the problem I added in the options add thumbnails to article. The case was resolved but temporarily.
I saw the last news changed address, by creating another subfolder + ID Article.
Joomla address link everything is okay.
But Last news link address is different and shows in the article photo. I want that picture is not visible.
I skipping that is a different address, did not bother me too much. Only image that shown in the article.
I checked not all addresses are changing.
cryptophysical.com/index.php/coins/satori-coin correct address in joomla menu
cryptophysical.com/index.php/coins/satori-coin/172-satori-coin address from Last news (172- ID article )
during writing I found a solution!!!!

remove ID from URL in Joomla
1. go to server FTP, Joomla! 2.5 lub 3.x.
2. go to folder: components/com_content/router.php.
3. copy router.php to PC
4.Edit router.php
linii 27 code:
$advanced = $params->get('sef_advanced_link', 0);
change to:
$advanced = $params->get('sef_advanced_link', 1);
around the line260:
$advanced = $params->get('sef_advanced_link', 0);
change to:
$advanced = $params->get('sef_advanced_link', 1);
around the line 282:
if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;
}
change to:
/*
if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;<b></b>
}*/
this is for Joomla! 2.5.
In Joomla! 3x z linii :
around the line 386:
->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));
change to:
->where($db->quoteName('alias') . ' = ' . $db->quote($segment));
Copy file back to the server: components/com_content/router.php.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5318) Offline
Hi thank you for the workaround and glad it's working for you, however editing the core file is not recomended because it will be overrided everytime you are updating the joomla
9 years 1 month ago #2
by TemplatePlazza
Please Log in or Create an account to join the conversation.