隐藏标题在joomla 3.2中不起作用 [英] Hide title not working in joomla 3.2

查看:164
本文介绍了隐藏标题在joomla 3.2中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我只想隐藏文章标题,没什么大不了,对吧?

Ok all I want is hide the article title, no big deal, right?

这就是我所拥有的:

So here is what I have:

这是我在文章管理器中的设置-我几乎禁用了所有内容,是的,我清除了缓存:

Here are my settings in the article manager - i disabled pretty much everthing, and yes, i cleared cache:

猜怎么着,标题没有消失.我真的对这种糟糕的品质感到厌倦. 标签也有同样的问题,它们不会消失.但是,您只需删除文章中所有的标签,即可使em消失(正确的解决方案正确)

Guess what, the title does not disappear. I am getting really tired of this bad quality. I had the same problems with the tags, they wouldn't disappear. But you can just remove all tags you have in an article to make em disappear (great solution right)

是joomla还是我?

Is it joomla or is it me?

我读到有关必须禁用作者的怪异评论在此处禁用标题

在我们的测试过程中,只需设置显示标题"将不会隐藏标题.您还需要将显示作者"选项设置为也隐藏.

During our testing, simply setting Show Title will not hide the title. You also need to set the option Show Author to hide as well.

那是3.0版

编辑 我正在调试,并且将其视为C:\xampp\apps\joomla\htdocs\components\com_content\views\article\tmpl\default.php的实现:

EDIT I was debugging, and I saw this as implementation of C:\xampp\apps\joomla\htdocs\components\com_content\views\article\tmpl\default.php:

<?php if ($params->get('show_title') || $params->get('show_author')) : ?>
<div class="page-header">
    <h2>
        <?php if ($this->item->state == 0) : ?>
            <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
        <?php endif; ?>
        <?php if ($params->get('show_title')) : ?>
            <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
                <a href="<?php echo $this->item->readmore_link; ?>"> <?php echo $this->escape($this->item->title); ?></a>
            <?php else : ?>
                <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?>
        <?php endif; ?>
    </h2>
</div>
<?php endif; ?>

因此,如果有author可用,则会渲染div和h2,但是在隐藏标题时应为空.

So a div and h2 is rendered in case author is available, should be empty when title is hidden though.

无论我做什么,显示标题始终为1,link_titles顺便说一句.禁用它的唯一方法是转到全局配置并将全局配置设置为隐藏",无论我在文章的文章管理器选项"选项卡中执行什么操作似乎都无效(将其设置为隐藏,显示,全局").它似乎固定在全球"上.至少用我测试过的东西

Show title is always 1, whatever I do, link_titles btw as well. The only way to disable it is going to the global configuration and setting the global configuration to Hide, whatever I am doing in the Article Manager Options tab of an article seems to have no effect (setting it to Hide, Show, Global). It seems to be fixed on 'Global'. At least with what I tested with

推荐答案

我发现的是(Joomla 3.2): 在菜单管理器->编辑菜单项->选项中 将显示标题设置为使用文章设置

What I found is this (Joomla 3.2): In Menu Manager -> Edit Menu Item -> Options Set Show Title to Use Article Settings

在文章管理器中-编辑文章->选项 将显示标题"设置为隐藏".

In Article Manager - Edit Article -> Options Set Show Title to Hide.

为我工作. 格特

这篇关于隐藏标题在joomla 3.2中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆