?
Referenced as Pull Request for: # 9142
avatar Dezi168
Dezi168
31 Aug 2015

Steps to reproduce the issue

Create an single with following article properties :
show_article : hide
show_author : show

Expected result

There should not be any code rendered for article title.

Actual result

An empty h2 tag is added to the code rendered

<h2 itemprop="name">
                    </h2>

System information (as much as possible)

Any system (it is HMTL rendering)

Additional comments

To solve this problem :
change lines 48 to 52 of file components/com_content/views/article/tmpl/default.php

actual code :

        <h2 itemprop="name">
            <?php if ($params->get('show_title')) : ?>
                <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?>
        </h2>

modified code to solve the issue :

        <?php if ($params->get('show_title')) : ?>
        <h2 itemprop="name">
            <?php echo $this->escape($this->item->title); ?>
        </h2>
        <?php endif; ?>
avatar Dezi168 Dezi168 - open - 31 Aug 2015
avatar zero-24
zero-24 - comment - 31 Aug 2015

@Dezi168 that makes sense ;) Can you send your change as Pull Request against staging?

If you need help see here: https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests Thanks :smile:

avatar brianteeman brianteeman - close - 17 Feb 2016
avatar brianteeman brianteeman - change - 17 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-17 18:25:26
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 17 Feb 2016

See #9142


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7790.

Add a Comment

Login with GitHub to post a comment