Лучший Ответ SmetDenis , 22 August 2013 - 19:08
1. Amend the CSS for all 'jbimage' elements in all layouts by defining the class just for jbimage. I could then use the native ZOO image element for images I don't want to have a border on. Are there any benefits to using the jbimage element over the native joomla element - because on face value they seem equivalent and using different elements may be the simplest method for me to control image CSS.
If compare with standard element Image, JBImage has such advantages as
- layout with popup widget
- all images in popup group to gallery
- JBImage is repeatable element
- it have option "default image", show it if picture file is not selected
If you add to image position style "jbblock"
You will receive unique classes that wrap the image HTML
For example
<?php echo $this->renderPosition('image-position-name', array('style' => 'jbblock')); ?>In this case HTML output will be
<div class="index-0 element-a6145996-4ce6-4a11-8aa9-c17a13b67cc0 element-jbimage"> <img src="..." /> </div>Class "element-a6145996-4ce6-4a11-8aa9-c17a13b67cc0" is unique for this element instance.
But class name is very long, because is made with system unique identifier (from Zoo).
How many images in your item?2. Creating one or more new image elements and declaring specific CSS rules for them independently. Is this simple to do? Presumably I could copy an existing element and change the names / files etc?
If their is not much we can do some elements, I think the big problems don't will be. Перейти к сообщению
