zoukankan      html  css  js  c++  java
  • Joomla中添加新字段 自定义字段 Add New Fields

    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

  • 相关阅读:
    最优装载问题---贪心算法
    windows 10 资源管理器多余盘符去除
    js版本排序改造vue版本
    async and await
    echarts问题
    vue兼容到IE9
    expdp/impdp 参数说明,中英对照
    MySQL ibdata1文件迁移
    Oracle AWR报告提取方法
    Vertica DBD 分析优化设计
  • 原文地址:https://www.cnblogs.com/liuzhengdao/p/1287404.html
Copyright © 2011-2022 走看看