Read me link

12 years 9 months ago #6531 by peanutsfr
Dear Sir,

I would be great if in Ajax Scroller, the link "read more..." was included in a translation file or equal to the localised value of the Joomla global var for read more.

Thanks in advance.

Please Log in or Create an account to join the conversation.

12 years 9 months ago #6532 by Saka
It is already. If you have problems with that explain in detail and I will try to replicate.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

12 years 9 months ago #6534 by peanutsfr
Ok, where can I define _READ_MORE as shown in common.php?

Please Log in or Create an account to join the conversation.

12 years 9 months ago #6538 by Saka
Which version of Joomla do you use?

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

12 years 9 months ago - 12 years 9 months ago #6545 by peanutsfr
I use Joomla 2.5.1 with french translation and there's no READ_MORE in xx-XX.com_content.ini but there's a COM_CONTENT_READ_MORE and a COM_CONTENT_READ_MORE_TITLE

Please Log in or Create an account to join the conversation.

12 years 8 months ago #6548 by peanutsfr
OK, I've donne a little mod in common.php:

jimport( 'joomla.version' );
...
$version = new JVersion();
...
if ($read_more && !empty($link)) {
      $content .= "<p class=\"link\"><a href=\"".$link."\" title=\"".$title."\"";
      if ($target_blank) {
      $content .= ' target="_blank"';
      }
if ($version->isCompatible(1.6)) {
$content .= ">".JText::_('COM_CONTENT_READ_MORE_TITLE')."</a></p>\n";
}
else {
if (!defined('_READ_MORE')) {
if (class_exists('JText')) {
define('_READ_MORE', JText::_('Read more...'));
} else {
define('_READ_MORE', 'Read more...');
}
}
$content .= ">"._READ_MORE."</a></p>\n";
}
}

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch