OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Make catagory picture a link to catagory listing (0 viewing) 

VehicleManager component support

Go to bottom Favoured: 0

Make catagory picture a link to catagory listing

jquesada (Visitor)
Posts: 0
graphgraph
User Offline
Make catagory picture a link to catagory listing 14 Years, 1 Month ago
Karma: 0  
Is there a way to make the catagory image a link to the catagory? Like the catagory name

I have the pro version, thank you.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Make catagory picture a link to catagory listing 14 Years, 1 Month ago
Karma: 102  
Hi,

For that in BookLibrary you need open file booklibrary.html.php, find function showInsertSubCategory

in it please find code
Code:

 <?php
            if ( ($params->get( 'show_cat_pic')) && ($cat_all[$i]->image != "")) {?>
              <img src="./images/stories/<?php echo $cat_all[$i]->image;?>" alt="picture for subcategory" height="48" width="48" />&nbsp;
          <?php
            } else  {?>
              <img src="<?php echo  $mosConfig_live_site; ?>/components/com_booklibrary/images/folder.png" alt="picture for subcategory" height="48" width="48" />&nbsp;
              <?php }?>
          </td>



and change it to
Code:

 <?php
            if ( ($params->get( 'show_cat_pic')) && ($cat_all[$i]->image != "")) {?>
               <a href="<?php echo sefRelToAbs( $link ); ?>"  ><img src="./images/stories/<?php echo $cat_all[$i]->image;?>" alt="picture for subcategory" height="48" width="48" /></a>&nbsp;
          <?php
            } else  {?>
              <a href="<?php echo sefRelToAbs( $link ); ?>"  ><img src="<?php echo  $mosConfig_live_site; ?>/components/com_booklibrary/images/folder.png" alt="picture for subcategory" height="48" width="48" /></a>&nbsp;
              <?php }?>
          </td>



But at first please backup file

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»