C:"Apache2.2"htdocs"joomla"administrator"components"com_content"admin.content.html.php

<input class=”inputbox” type=”text” name=”title” id=”title” size=”40″ maxlength=”255″ value=”<?php echo $row->title; ?>” />
<input class=”inputbox” type=”text” name=”ceapet” id=”ceapet” size=”40″ maxlength=”255″ value=”<?php echo $row->ceapet; ?>” />

C:"Apache2.2"htdocs"joomla"administrator"components"com_content"controller.php
在$row->metadesc = $item->metadesc;
之后增加
$row->daiqianji = $item->ceapet;

C:"Apache2.2"htdocs"joomla"components"com_content"models"section.php
C:"Apache2.2"htdocs"joomla"components"com_content"models"category.php
C:"Apache2.2"htdocs"joomla"components"com_content"models"archive.php
C:"Apache2.2"htdocs"joomla"components"com_content"models"frontpage.php

在a.metadesc之后,添加字段a.ceapet

C:"Apache2.2"htdocs"joomla"libraries"joomla"database"table"content.php
在var $hits = null;之后,定义变量 var $ceapet = null;

C:"Apache2.2"htdocs"joomla"components"com_content"views"article"tmpl"default.php
在<?php echo $this->escape($this->article->title); ?>
附近增加<br />ceapet:<?php echo $this->escape($this->article->ceapet); ?>

C:"Apache2.2"htdocs"joomla"components"com_content"views"category"tmpl"default_items.php
在<?php if ($this->params->get(’show_title’)) : ?>
附近增加
<td class=”sectiontableheader” width=”45%”>
ceapet
</td>

<td>
<?php echo $item->ceapet; ?>

</td>

 

 源:http://ceapet.com/blog/?p=338

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2021-12-02
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-01-24
  • 2022-12-23
相关资源
相似解决方案