PetterSandvik VIP
Total posts: 110
21 Aug 2018 21:06

Hello,

I have set the setting for author name to off, but its still there. The gallery-template is used

forfatternavn

Last Modified: 31 Aug 2018


pepperstreet VIP
Total posts: 3,837
22 Aug 2018 23:30

Hello Petter,

unfortunately I have to confirm your issue. The default Gallery template seem to miss the proper "IF" statements. Needs two minor fixes.


I would like to suggest a temporary CSS solution, but avatar/author/date are in the same Paragraph and "small" tag :(


pepperstreet VIP
Total posts: 3,837
22 Aug 2018 23:39

pepperstreet The default Gallery template seem to miss the proper "IF" statements. Needs two minor fixes.

The output echo lines should be surrounded by IF statements:

<?php if($params->get('tmpl_core.item_author')):?>
    <?php echo JText::sprintf('CWRITTENBY', CCommunityHelper::getName($item->user_id, $this->section))?>
<?php endif;?>

<?php if($params->get('tmpl_core.item_ctime')):?>
    <?php echo JText::sprintf('CONDATE', JHtml::_('date', $item->created, $params->get('tmpl_core.item_time_format')))?>
<?php endif;?>

I have attached a temporary fixed PHP file.
If you want to update it on your own risk, then unzip and copy/replace this file:

YourJOOMLA/components/com_cobalt/views/records/tmpl/default_list_gallery.php

default_list_gallery ZIP


PetterSandvik VIP
Total posts: 110
23 Aug 2018 10:07

Many thanks! Solved!


Sergey
Total posts: 13,748
31 Aug 2018 10:30

Added it to next update of templates pack.

Powered by Cobalt