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
TOPIC: Make catagory picture a link to catagory listing
#1233
jquesada (Visitor)
Fresh Boarder
Posts: 16
graphgraph
User Offline
Make catagory picture a link to catagory listing 5 Years, 11 Months 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.
#1234
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Make catagory picture a link to catagory listing 5 Years, 11 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?