Лучший Ответ Kess , 05 January 2014 - 13:06
"Separated by" is for repeatable elements as it's description says. You should just make minor modifications to the template files to achieve what you need.
First you should open a layout file for your item type. For example, if you are using default "product" type, open the media/zoo/applications/jbuniversal/templates/catalog/renderer/item/product folder. If you want to configure the "teaser" layout then open "teaser.php". Then in that file find where particular position is rendered. For example, this is a code that renders "Properties" position:
<?php if ($this->checkPosition('properties')) : ?>
<ul>
<?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
</ul>
<?php endif; ?>
Notice that there is this code here:
array('style' => 'list')
It means that "list" style should be used for rendering elements in this position. There are a lot of other such styles. You can find them in these folders:
- media/zoo/applications/jbuniversal/templates/catalog/renderer/element
- components/com_zoo/renderer/element
See the contents of those files and you'll have an idea how they work.
In your case you can use "jbblock" style, it wraps titles in a "strong" tag by default. So in your "teaser.php" just change
array('style' => 'list')
to
array('style' => 'jbblock')
Also it's possible to pass additional parameters here, you can look in the media/zoo/applications/jbuniversal/templates/catalog/renderer/item/product/full.php for some examples. So if you don't like "strong" for labels, try
<?php echo $this->renderPosition('properties', array('style' => 'jbblock', 'labelTag' => 'span')); ?>
Also you can create your own styles by copying existing ones and modifying them.
Перейти к сообщению


Тема закрыта







