dongque4778 2013-09-11 16:10
浏览 68
已采纳

Joomla网站视图没有“阅读更多”

I am new to Joomla and tried to make a little component on my own. I redirect the user on the site to a view where he can insert some information in a form and submit them. The logic somewhat works, but Jommla inserts three links for posts, read more and another one. How can I prevent Joomla from adding this?

My code for the view:

<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.framework');
JHtml::stylesheet('my-file.css', 'components/com_component/');

echo '<h1>Form</h1>';
?>

<form action="<?php /* Create JRoute*/ ?>" method="post" name="mailForm">

   <ul>
    <?php foreach($this->form->getFieldset() as $field): 
    if ($field->label!="") {
        echo '<li>'.$field->label.$field->input.'<br/></li>';
    } else {
            echo '<li>'.$field->input.'</li>';             
    }?>

    <?php endforeach; ?>
    </ul>
    <div>
            <input type="submit" value="Senden!">
            <?php echo JHtml::_('form.token'); ?>
    </div>
</form>

The rendered result (not intended links marked red): enter image description here

  • 写回答

1条回答 默认 最新

  • dongxian3852 2013-09-11 22:18
    关注

    In the XML declaration of the JForm form update the entry for editor:

    <field name="description" label="Bescheibung" type="editor" />
    

    add additional attribute:

     buttons="false"
    

    Reference: http://docs.joomla.org/Editor_form_field_type

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题