News:

Looking for documentation? Take a look on our wiki

Main Menu

Display category slide show

Started by Antonmd, February 29, 2016, 16:57:02 PM

Previous topic - Next topic

Antonmd

Hello!

I would like to bring the category in the slide show. My slider code like this:

<div class="flexslider">
  <ul class="slides">
    <li data-thumb="slide1-thumb.jpg">
      <img src="slide1.jpg" />
    </li>
  </ul>
</div>

I'm trying to edit a file categories.php and when I go there I substitute the output image categories:

<li data-thumb="<?php // if ($category->ids) {
            echo $category->images[0]->displayMediaThumb("",false);
          //} ?>">

That eventually get this:

<li data-thumb="<img src=" images="" stories="" virtuemart="" category="" resized="" hamilton_american_classic_200x0.jpg"="" alt="Коллекция American Classic Hamilton">" </li>

I tried to add this:

<li data-thumb="<?php echo vmText::_($category->category_full_image) ?>">

But without result.

How can I get the path to the image categories with no other tags?