I was searching for this for couple of days till now
and I think I got a solution to place a character count to your intro text so that if you want to make your cat. or section in blog style so it will be more
for category layout:
open :
\components\com_content\views\category\tmpl\blog_item.php
search for :
Code: Select all
<?php echo $this->item->text; ?>
Code: Select all
<?php
$limit =100;
if (strlen($this->item->text) > $limit) {
echo (substr($this->item->text, 0, $limit)) . " ... ";
}
else {
echo $this->item->text;
}
?>
open: \components\com_content\views\frontpage\tmpl\default_item.php
search for :
Code: Select all
<?php echo $this->item->text; ?>
Code: Select all
<?php
$limit =100;
if (strlen($this->item->text) > $limit) {
echo (substr($this->item->text, 0, $limit)) . " ... ";
}
else {
echo $this->item->text;
}
?>
i hope I was helpful and I'd be glad if there is any comment or a correction for this code
Thanks Joomla