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

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

问题描述

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

所以这是我所拥有的:

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

猜猜看,标题并没有消失.我真的厌倦了这种糟糕的品质.我对标签有同样的问题,它们不会消失.但是你可以删除文章中的所有标签,让它们消失(很好的解决方案)

是 joomla 还是我?

我读到一条关于必须禁用作者的奇怪评论在此处禁用标题

<块引用>

在我们的测试过程中,简单地设置 Show Title 不会隐藏标题.您还需要将选项显示作者设置为隐藏.

那是在 3.0 版

编辑我正在调试,我看到这是 C:xamppappsjoomlahtdocscomponentscom_contentviewsarticle mpldefault.php 的实现:

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 其他:?><?php echo $this->escape($this->item->title);?><?php endif;?><?php endif;?>

<?php endif;?>

因此,如果作者可用,则会呈现 div 和 h2,但在隐藏标题时应为空.

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

解决方案

我发现的是这个 (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:

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)

Is it joomla or is it me?

I read a weird comment about having to disable author to disable the title here

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.

That was in version 3.0

EDIT I was debugging, and I saw this as implementation of C:xamppappsjoomlahtdocscomponentscom_contentviewsarticle mpldefault.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; ?>

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

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

解决方案

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.

Worked for me. Gert

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

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