000-CMS
avatar Stalib
Stalib
8 Nov 2013

Description:

The info block render helper does not hide the entire html generated when selecting above or below from the article options when using components like Category Blog. The default article view component is fine as it does not use the render helper.

This produces errors when trying to style the .article-info class. If this is intentional, please note this breaks behavior across different components IE Category Blog and the default article view.

Version:

Joomla 3.2 (Windows 7 64bit, Chrome)

Details:

File: ../components/com_content/info_block/block.php

<dl class="article-info  muted">
        <?php if ($displayData['position'] == 'above' && ($blockPosition == 0 || $blockPosition == 2)
                        [Other Code]
        <?php endif; ?>
    </dl>

Should be:

<?php if ($displayData['position'] == 'above' && ($blockPosition == 0 || $blockPosition == 2)
           <dl class="article-info  muted">
                        [Other Code]
          </dl>
<?php endif; ?>

Repro Steps:

  1. Select Category Blog as menu item type
  2. Change position of article info in the article options section to either above or below
  3. Add any css to .article-info IE .article-info {padding: 5px; border: thin solid red; background-color: green;)

Results:

Both article-info are still visible. One with text and one without depending on option selected.

Expected:

Only one article-info box should be visible depending on your option (IE either below or above)

avatar Stalib Stalib - open - 8 Nov 2013
avatar Stalib Stalib - open - 8 Nov 2013
avatar - close - 8 Nov 2013

Add a Comment

Login with GitHub to post a comment