Keyword

How to make Item image link to URL instead of light box

  • Rickey Tribble
  • Rickey Tribble's Avatar Topic Author
  • Offline
  • New Member
More
14 years 10 months ago #75218 by Rickey Tribble
Is this possible with 2.1 or is there an extension coming out soon (might have read that somewhere)? I need it to be easy. One category I have needs to have the item image link to an outside site.

Thanks.

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

More
14 years 10 months ago #75219 by Curry Roberts
Can someone tell me how to properly paste html code :)?

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

  • Rickey Tribble
  • Rickey Tribble's Avatar Topic Author
  • Offline
  • New Member
More
14 years 10 months ago #75220 by Rickey Tribble
Replied by Rickey Tribble on topic How to make Item image link to URL instead of light box
You can use the sourcerer plugin but I am not sure yet if it works with K2, I think it does.

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

More
13 years 8 months ago #75221 by BBC
That little option would be perfect to turn K2 to Weblinks extension. Or "directory" extension, when you don´t need detailed explanation in Items.

Posibility to turn K2 images and titles to extern (or intern) url´s by choice.

 

Plus, for many more things. All depends of imagination.

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

More
13 years 8 months ago #75222 by BBC
Anyway, Titles in Category would be very easy to fix.

Just rearange in php file to have extra field instead of Titles (extra field link), and disable lines for Item Title.

And problem with Titles is OK. Don´t know how it would be with several extra fields. (output and styling)

 

But, for Images is little different.

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

More
13 years 8 months ago #75223 by BBC
To make it more clear.

 

Everything in Joomla that has only Intro text fall in this solution.

It´s stupid to have Intro text, then open detailed Item, just to find exactly same text.

 

This can man achieve with some workarounds, and hacks. But it would be perfect to have as Admin option in Item manager.

To could write url and redirect Titles and images where you want.

 

Regarding mysql queries, it wouldn´t add anything much to page load.

 

 

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

More
13 years 8 months ago #75224 by BBC
Found some nice workaround for Category Images and redirect to extern url. (or intern, non-K2)

For Items Ttiles have i done with extra field link. But don´t remember now what it was, just tested. I´ll write it latter.

 

Here is nice workaround for Images (Category and Detailed view also).

I used just Image cation as field for extern URL. And if it is populated, then image redirect to that URL. For all other items that has caption empty are old rules for Item Title.

 

If you want caption for captions, you can use Credits, same principe.


 

<div class="catItemImageBlock">          <span class="catItemImage">            <a href="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->link; ?>" target="_blank" title="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>">                <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />            </a>          </span>      </div>

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


Powered by Kunena Forum