如何在Joomla 3中进行类别博客覆盖?

What I am wanting to do is edit my category blog layout so that:

  1. The description to be limited to x amount of characters (on the fly without having to insert a read more break in the article)
  2. Remove all formatting from the article text.

Then when the full article is opened all the full text and formatting is present.

Could someone please tell me which files I need to modify/duplicate please, would really appreciate it explained as simply as possible as this is the first time I have dove into overrides :)

I have created an overwrite of the file blog_item.php using the built in function within my template section within joomla but the contents of this file are:

   <?php
   /**
   * @package   yoo_master2
   * @author    YOOtheme http://www.yootheme.com
   * @copyright Copyright (C) YOOtheme GmbH
   * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
   */

   // include config and layout
   $base = dirname(dirname(dirname(__FILE__)));
   include($base.'/config.php');
   include($warp['path']->path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));

is it just pointing the script to the original joomla file for blog_item.php?

Thanks Luke

In the administrator,

  1. go to Template Manager, Templates and click on the name of the template you are using.
  2. Go to the Create Overrides tab.
  3. Under components, select com_content> category
  4. Under layouts, select content
  5. Go to the editor tab.
  6. Under html, com_content select blog_item.php
  7. Around line 47 you will see <?php echo $this->item->introtext; ?>
  8. Wrap that in the string truncation method.