Гость
20 Фев 2014 04:47

Hello

Скрытый текст

I have created 3 records modules in my homepage

each one is set to display records of a different type form my section

http://alkemica.net/contenuti

(I have 3 types in total)

(eg. of one module settings)

this is what is happening:

the first 2 modules from the left ("articoli", and "discussioni")

are displaying mixed records from all my section types, instead that filtering them by type

the third module "citazioni" is displaying correctly the filed called by ID, but not the record title (still mixes them as is happening for the other 2 modules)

for this 3 modules I am using a 3 very simple custom templates

here is the code

<?php

/**

 * Cobalt by MintJoomla

 * a component for Joomla! 1.7 - 2.5 CMS ( http://www.joomla.org )

 * Author Website:  http://www.mintjoomla.com/ 

 * @copyright Copyright (C) 2012 MintJoomla ( http://www.mintjoomla.com ). All rights reserved.

 * @license GNU/GPL  http://www.gnu.org/copyleft/gpl.html 

 */

defined('_JEXEC') or die('Restricted access'); 

$k = $p1 = 0;

$params = $this->tmpl_params['list'];

$total_fields_keys = $this->total_fields_keys;

$fh = new FieldHelper($this->fields_keys_by_id, $this->total_fields_keys);

$exclude = $params->get('tmpl_params.field_id_exclude');

settype($exclude, 'array');

foreach ($exclude as &$value) {

    $value = $this->fields_keys_by_id[$value];

}

JHtml::_('dropdown.init');

?>

<div>

    <?php foreach ($this->items AS $item):?>

        <?php

        $ll = array();

        ?>





<div class="module-thumb hidden-phone">

<?php if(isset($item->fields_by_id[73])): ?> <?php echo $item->fields_by_id[73]->result; ?> 

<?php else: ?> 

    <a href="/<?php echo JRoute::_($item->url);?>" title="<?php echo $item->title?>"><img class="img-float-left img-polaroid" src="/images/logo-thumb.gif" ></a>

<?php endif; ?> </div>

 <div class="cb-module-title"><h5>    <a href="/<?php echo JRoute::_($item->url);?>"><?php echo $item->title?></a></h5></div>

 <div class="clearfix"></div>

 <div class="cb-sep-5"></div>

  <div class="visible-phone separator-dashed"></div>

        <?php endforeach;?>

</div>

the field I call by ID is the record thumbnail, this field call a different ID depending on the template associated with the module, apart from that the module displays only the record title

I also tried to switch to the defaul simple-list template to see if the issue was due to my templates customizations, but I have still this issue

I attach below the 3 templates I am using

thank you

Последние изменения: 02 Март 2014


Гость
21 Фев 2014 04:19

it seems that the issue affects only the record titles

I mean that if I call other fields by ID inside the module template, they are being displaied correctly

while record titles instead are not being filtered per type in the 3 different modules


pepperstreet VIP
Total posts: 3,837
22 Фев 2014 18:47

Just noticed your post…

Confirmed. Filtering/Restrict display to certain types is not working for me?! I have tested with 1 Record module in sidebar.

If Google translation was right, I posted my confirmation in the following bug topic: ;-)

Cobalt - Module - Records "Only following types" не работает.


Sergey
Total posts: 13,748
24 Фев 2014 07:44

Thank you for detailed report. i have fixed it on your site. And in the next update too.


Гость
24 Фев 2014 08:57

thank you a lot! :D

Работает на Cobalt