Keyword

Item in a popup box - is this possible?

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95876 by gerald sisimayi
Item in a popup box - is this possible? was created by gerald sisimayi
Hello all,

 

I want to make a grid of k2 items on 1 large page. I want it so that if they click on the thumbail of any item the item view will come out in a popup window (only a few custom fields and a pic on this view) which people can open and close.

 

Is such a thing possible?

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

More
13 years 5 months ago #95877 by william white
Replied by william white on topic Item in a popup box - is this possible?
I have seen that at work in a JoomlaBamboo template, cannot remember which one, it may have been in a module from them called mod_microblog

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

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95878 by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
thanx - I know that module, let me have a look.... it`s a start...

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

More
13 years 5 months ago #95879 by william white
Replied by william white on topic Item in a popup box - is this possible?
The place i think i saw it was in a quickstart of Avanti, but i looked and do not see it now

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

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95880 by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
what did you see in a quickstart of Avanti, Microblog?

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

More
13 years 5 months ago #95881 by juju
Replied by juju on topic Item in a popup box - is this possible?
You could change the item link in category list, and open them with a squeezebox, like this :

 

function loaditem(item_id){

      SqueezeBox.initialize();

      SqueezeBox.fromElement(this, {

      handler: 'iframe',

      url: 'url_to_your_item',

      size: {x:window.getSize().scrollSize.x-200, y: window.getSize().size.y-80},

     onShow:$('sbox-window').setStyles({'padding': 2}),    


});

}

 

For the url to the item, use the id of item, it's not hard to find... And for the size, I put automatic resize to the screen size of the user, and I remove 200px to width, and 80 to height, but you can do what you want ;)

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

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95882 by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
thanx a million , but where exactly would I put this code

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

More
13 years 5 months ago #95883 by juju
Replied by juju on topic Item in a popup box - is this possible?
I've not really the time to explain in details to you, but you have to do an override of the file :

 

joomla_folder\components\com_k2\templates\default\category_item.php

 

Read documentation of override (on this website, or on Simon website).

You just have to change the link of the image by a call to my fonction with the item id.

 

If nobody else help you with these indications, I'll be back on this topic at the end of the week ;)

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

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95884 by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
Hi,

 

I think I will wait for you, this is greek to me. If you are available sooner even better, I dont mind paying a small fee to you

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

  • gerald sisimayi
  • gerald sisimayi's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 5 months ago #95885 by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
Hello, you availble now Juju (or anyone who can help, really urgent now)

 

Thanx

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


Powered by Kunena Forum