12 years 3 months ago
Bamboo,
Using the grid option.
If I add, under Text Options, characters to Suffix added to truncated text it gets rendered twice - the characters I entered were "..." not the "......" rendered. If I leave it blank, no characters appear as the suffix, which is expected.
See
joomlabeta.cornerstonecubed.com/tool-kits/toolkits
UPDATE:
in the zenj17contenthelper.php file I changed the following code that eliminates the double rendering:
if($strip_tags) {
$introtext = $strip_tags ? zenHelper::_cleanIntrotext($item->introtext,$tags) : $item->introtext;
}
else {
$introtext = $item->introtext;
}
if($wordCount !=="-1") {
$tempintro = false;
$item->text = $wordCount ? zenHelper::truncate($introtext, $wordCount, $textsuffix) : $tempintro;
}
else {
$item->text = $item->introtext;
}
$item->text = $item->text.$textsuffix;
...to:
if($strip_tags) {
$introtext = $strip_tags ? zenHelper::_cleanIntrotext($item->introtext,$tags) : $item->introtext;
}
else {
$introtext = $item->introtext;
}
if($wordCount !=="-1") {
$tempintro = false;
$item->text = $wordCount ? zenHelper::truncate($introtext, $wordCount, $textsuffix) : $tempintro;
}
else {
$item->text = $item->introtext;
$item->text = $item->text.$textsuffix;
}
...moving the last code line into the "else" construct.
Haven't tested it extensively and not a php coder.
Jonathan