Перейти к содержимому


Фотография
- - - - -

Item display positions


Лучший Ответ Kess , 23 April 2014 - 08:35

Then it will be easier to just apply clearfix styles to that block.

 

http://nicolasgallag...-clearfix-hack/

 

If you use plain CSS, just add this and it will be fine:

.element-textarea:before,
.element-textarea:after {
    content: " ";
    display: table;
}
.element-textarea:after {
    clear: both;
}
.element-textarea {
    *zoom: 1;
}
Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 12

#1 Steven Vandermeulen

Steven Vandermeulen

Отправлено 22 April 2014 - 16:05

hello,

 

i'm making a website for a machine manifacturer and i have trouble making the item display look ok.

 

this is what i want:

http://joomla.spiess...mmelwasser-copy

the gallery is nice, but i had to add <p>&nbsp</p> lines to the product description.

 

When i don't do it, i get this:

http://joomla.spiess...m/trommelwasser

 

How to solve it whitout the nbsp - lines.

 

How to add a <div class="clear clr"></div> line after the <div class="element element-textarea first">?


  • 0

#2 Kess

Kess

Отправлено 22 April 2014 - 21:20

Hello,

 

You need to edit the "full" template for your item type.

 

If there is a separate folder for your item type, then the path is

media/zoo/applications/jbuniversal/templates/catalog/renderer/item/herbort-machine/full.php

Otherwise, it's

media/zoo/applications/jbuniversal/templates/catalog/renderer/item/full.php

There you'll be able to add that div.


  • 0

#3 Steven Vandermeulen

Steven Vandermeulen

Отправлено 23 April 2014 - 06:56

How and where do i add this? there is only one line for "text" and i have several items in that position. It only has to be after 'text first'.

<?php if ($this->checkPosition('properties')) : ?>
    <ul class="item-properties">
        <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>


<?php if ($this->checkPosition('text')) : ?>
    <?php echo $this->renderPosition('text', array('style' => 'block')); ?>
<?php endif; ?>


<?php if ($this->checkPosition('meta')) : ?>
    <ul class="item-metadata">
        <?php echo $this->renderPosition('meta', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>

<div class="clear clr"></div>

  • 0

#4 Kess

Kess

Отправлено 23 April 2014 - 08:35   Лучший Ответ

Then it will be easier to just apply clearfix styles to that block.

 

http://nicolasgallag...-clearfix-hack/

 

If you use plain CSS, just add this and it will be fine:

.element-textarea:before,
.element-textarea:after {
    content: " ";
    display: table;
}
.element-textarea:after {
    clear: both;
}
.element-textarea {
    *zoom: 1;
}

Сообщение отредактировал Kess: 23 April 2014 - 08:35

  • 0

#5 Steven Vandermeulen

Steven Vandermeulen

Отправлено 23 April 2014 - 08:57

Where do i need to add this? which file?


  • 0

#6 Kess

Kess

Отправлено 23 April 2014 - 09:18

I see that you already added this code to your custom.css, that's right place for it.


  • 0

#7 Steven Vandermeulen

Steven Vandermeulen

Отправлено 23 April 2014 - 09:20

i did, but it doesn't work. i think i need to call the css style somewhere, but don't know where or how.


  • 0

#8 Kess

Kess

Отправлено 23 April 2014 - 09:31

Actually, it works just fine. I think your browser cache needs to be cleared. Try pressing Ctrl+F5.


  • 0

#9 Steven Vandermeulen

Steven Vandermeulen

Отправлено 23 April 2014 - 11:52

it works indeed with the gallery, but not anymore with the related items in: http://joomla.spiess...m/trommelwasser

how come?


  • 0

#10 Sliapy

Sliapy

Отправлено 23 April 2014 - 12:33

What exactly doesn't work? This is what I see right now

 

n36_200x0.jpg


  • 0
[color=#aa0000]Не забывайте нажимать кнопку "Вопрос Решён" под сообщением, которое решило Вашу проблему.[/color]




Click to return to top of page in style!