| Limit frontpage and blog layout intro text |
| Joomla 1.5 Web Development - Tutorials | |||
|
Question: The default Joomla frontpage and blog layouts are nice. But, if the user forgets to add the read more break, the whole article shows up. So, we want to limit the intro text of the front page to 100 characters and the blog layouts to 300. Answer: 1) open: \components\com_content\views\frontpage\tmpl\default_item.php <?php echo $this->item->text; ?> Replace with: <?php What this does is limit the intro text to 100 characters. For the blog layouts open \components\com_content\views\category\tmpl\blog_item.php and do the same, but change the value of 100 to 350. This will show 350 characters vs 100.
|
Thanks!!!
-- Serr response
Given that the character limit is pretty short, a READ MORE link is not really needed (At least for us.) Instead, we just make the "Titles" links, which is set via the menu manager.