Jump to content


Photo
- - - - -

Complete teaser area as a link?


Best Answer SmetDenis , 10 October 2016 - 19:59

Hi,

 

Try to wrap teaser layout to huge link.

media\zoo\applications\jbuniversal\templates\<TEMPLATE>\renderer\item\<ITEM_TYPE>\teaser.php

 

<?php
 
$url = $this->app->route->item($item);
 
echo '<a href="' . $url . '">';
 
// render all positions.
 
echo '</a>';

 

Or you can use some JavaScript to change window.location variable by click

Go to the full post


2 replies to this topic

#1 Rene M

Rene M

Posted 08 October 2016 - 14:39

How to make the complete teaser area as an link to the detail page?

 

Kind regards René


  • 0

#2 SmetDenis

SmetDenis
  • Administrators
  • User rate: 139.4
  • posts: 16232
  • topics: 200

Posted 10 October 2016 - 19:59   Best Answer

Hi,

 

Try to wrap teaser layout to huge link.

media\zoo\applications\jbuniversal\templates\<TEMPLATE>\renderer\item\<ITEM_TYPE>\teaser.php

 

<?php
 
$url = $this->app->route->item($item);
 
echo '<a href="' . $url . '">';
 
// render all positions.
 
echo '</a>';

 

Or you can use some JavaScript to change window.location variable by click


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#3 Rene M

Rene M
  • Topic Starter
  • JBZoo User
  • User rate: ~
  • posts: 9
  • topics: 3

Posted 10 October 2016 - 21:05

Looks promising thanks!


  • 0




Click to return to top of page in style!