Keyword

Category view - click on picture to go to item

  • Maarten T'Kindt
  • Maarten T'Kindt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119463 by Maarten T'Kindt
Category view - click on picture to go to item was created by Maarten T'Kindt
Hi,

I have some issues with customizing the K2 component: This is the url of the website: kimat.be/_demo/aac/index.php/projects

If you click in the menu on "Projects", the K2 category "Projects" will open. Is it possible that if you click on the picture you go to the specific item (instead of zoom in of the picture)? I also don't want the category view to show text next to the items. It only has to show the item pictures, when you click on a picture you go to the item page (similar to read more button..)

I already Googled this but can't manage to find the right answer. So any help would be greatly appreciated!

Grts
M

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119464 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category view - click on picture to go to item
Hello Maarten,

This functionality is specific to your template.

You need to change your image's link (href="xxx") to
href="<?php echo $this->item->link; ?>"

It is possible some values and behaviour are generated through content plugins (rokbox) so you might need to contact the template developer on how to change their functionality.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Maarten T'Kindt
  • Maarten T'Kindt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119465 by Maarten T'Kindt
Replied by Maarten T'Kindt on topic Re: Category view - click on picture to go to item
Thanks!

In the category_item.php file I suppose? I already made some changes and it seems to work, but I don't have the animation anymore of the zoom overlay.

Do you also know how I can get rid of the item text in the category view? I don't see the parameter to do this..

Thanks again!

Please Log in or Create an account to join the conversation.

  • Maarten T'Kindt
  • Maarten T'Kindt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119466 by Maarten T'Kindt
Replied by Maarten T'Kindt on topic Re: Category view - click on picture to go to item
OK I found the parameter. But I still have the issue that the title of an item is displayed next to the picture..It should be below the picture.

So I want per row 3 or 4 items (doens't work) and the title below the item (doesn't work).


Any help is much appreciated!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119467 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category view - click on picture to go to item
The template has overriden the default functionality of K2. The developer has probably stripped the widths and classes required for the grid to work.

In order for the columns to work you might need to disable the isotope plugin (ask the developer about that)

This will add a needed float to your columns (after you remove the isotope plugin)

.itemContainer {
float: left;
}

Finally removing the float: left and margin: right from div.catItemImageBlock will bring the title bellow the image.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Maarten T'Kindt
  • Maarten T'Kindt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119468 by Maarten T'Kindt
Replied by Maarten T'Kindt on topic Re: Category view - click on picture to go to item
Hi, Thanks! It didn't work though :) but I "reinstalled" K2 and all is OK now.

Except this ;)

If you click on Projects I want to open the category Projects (only images). This works.
If you click on a Project (an image), the project item has to open instead of zoom in of the image.

I changed this:
<a class="touch" href="<?php echo $this->item->itemXlarge; ?>"
To this:
<a class="touch" href="<?php echo $this->item->link; ?>"

This doesn't work.

If I change it to this:
<a href="<?php echo $this->item->link; ?>"
(without the touch class) it works. However, I still want to use the hover effect.

The only things I see in the touch class is this:
/*
#port a.touch {
/*position: relative;
display: block;
overflow: hidden;
}
#port a.touch span.zoomIcon {
background: url("../images/zoom.png") no-repeat scroll 0 0 transparent;
height: 49px;
left: 50%;
margin-left: -24px;
margin-top: -25px;
position: absolute;
top: -50%;
width: 47px;
*/

I commented it all out but still it shows the zoomin of the image. Is the Touch class used somewhere else as well?

Hope you understand the problem. Thanks in advance for the effort!
Site url is: kimat.be/_demo/aac/index.php/projects

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119469 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category view - click on picture to go to item
I am not sure if .touch is needed elsewhere apart from the icon effect.
The zooming effects are usually done with the CSS transform and transition values.

These are questions however that the template provider will be able to assist you even further.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum