<td class="djc_image"> <?php if ($item->item_image) { ?> <div class="djc_image_in"> <?php if ((int)$this->params->get('image_link_item') == 1) { ?> <?php } else { ?> <a href="<?php echo JRoute::_(DJCatalogHelperRoute::getItemRoute($item->slug, (!isset($this->item) || (empty($this->item->catslug))) ? $item->catslug:$this->item->catslug)); ?>"><img class="img-polaroid" alt="<?php echo $item->image_caption; ?>" src="<?php echo DJCatalog2ImageHelper::getImageUrl($item->image_fullpath,'small'); ?>" /></a> <?php } ?> </div> <?php } ?> </td> 

There is such a code, a link which leads to a detailed view of the ad. How can I make this page open in a modal window? (in a new window it turns out to be done).

  • What do you mean by a modal window in this case? What does not suit the new window? What is not satisfied with modal popups, which are not real windows, but simply Html elements stylized as necessary? - Grundy
  • Modal windows are unfortunately somehow not very supported by browsers. Therefore, often the interface is blotted with an interface, an iframe is created, into which the "modal" page is loaded. - Sergey
  • That's it, that modal popups do not work, for example (fancybox), the link in the same window is simply opened. - Andrey
  • maybe I am not correctly inserting the pop-up code or js - Andrey
  • You can give an example of what js to use and where and what code to insert. - Andrey

0