Hello
![](/media/mint/icons/16/lock.png)
Скрытый текст
I have created 3 records modules in my homepage
![](https://s3.amazonaws.com/adwsfiles/thumbnails/2014-2/records_module_in_homepage.png)
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)
![](https://s3.amazonaws.com/adwsfiles/thumbnails/2014-2/records_module_settings.png)
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
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
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