Category View, Linked Images

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Aug 25, 2013 7:10 pm
Reply with quote
Report this post
Hi Again,

Another question ye might be able to help me with.

When you click into a category view where subcategories exist it lists the sub-cats but to navigate further you need to click the text as the image isnt hyperlinked. Can this be changed to be linked?

Example:

http://www.caseys.ie/index.php/bedroom

To goto Bedroom Furniture you cannot just click the picture of the wardrobe you have to instead click the text. This isnt ideal!

Thanks,
Fionn
User avatar
Senior Boarder

teitbite
Sun Aug 25, 2013 10:25 pm
Reply with quote
Report this post
Hi

Please just tell me which component categories view is it ? K2, VM or a regular joomla articles ?
User avatar
Moderator

GK User
Sun Aug 25, 2013 11:08 pm
Reply with quote
Report this post
Its VM.

Thanks,
User avatar
Senior Boarder

teitbite
Tue Aug 27, 2013 4:29 pm
Reply with quote
Report this post
Hi

I've edited file /html/com_virtuemart/categories/default.php

and where You have a code:

Code: Select all
                   <?php echo $category->images[0]->displayMediaThumb("",false); ?>


I've replaced it with:

Code: Select all
                <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                   <?php echo $category->images[0]->displayMediaThumb("",false); ?>
                </a>


works for me.
User avatar
Moderator

GK User
Tue Aug 27, 2013 9:26 pm
Reply with quote
Report this post
Worked like a charm! Thanks again!
User avatar
Senior Boarder

teitbite
Thu Aug 29, 2013 1:08 pm
Reply with quote
Report this post
Hi

No problem, glad I could help :)
User avatar
Moderator


cron