Keyword

Item in a popup box - is this possible?

  • Robin Nonnweiler
  • Robin Nonnweiler's Avatar
  • Offline
  • Junior Member
More
13 years 4 months ago #95906 by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
Wow, thanks a lot!!

Really great support here!

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

  • Robin Nonnweiler
  • Robin Nonnweiler's Avatar
  • Offline
  • Junior Member
More
13 years 4 months ago #95907 by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
I think it works, if you use "?tmpl=component" instead of "&tmpl=component" !

 

Is there also a possibility to let the modal box resize to fit the screen? Wouldn't so important, but really nice, because I have different image sizes in items.

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

More
13 years 4 months ago #95908 by BBC
Replied by BBC on topic Item in a popup box - is this possible?
Resize Modal to fit screen and you don´t have close option. No close button in modal.

Maybe fit screen to 80-90%.

It is not easy.

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

More
13 years 4 months ago #95909 by BBC
Replied by BBC on topic Item in a popup box - is this possible?
But, there is a huge problem with this way to open Items.

How will Google spiders come in in Items, and index them ?

 

It needs to be more researched. Joomla forum is right place.

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

More
13 years 4 months ago #95910 by BBC
Replied by BBC on topic Item in a popup box - is this possible?
Yes, it works OK with "?tmpl=component""

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

  • Robin Nonnweiler
  • Robin Nonnweiler's Avatar
  • Offline
  • Junior Member
More
13 years 4 months ago #95911 by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
Ok, I see. The size is defined by "size:{x:800,y:550}" given to the iframe, right?

If I use "size:{x:80%,y:80%}" it doesn't work anymore :-(

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

More
13 years 4 months ago #95912 by juju
Replied by juju on topic Item in a popup box - is this possible?
For the size of the modalbox, you can replace for example :

 

<a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="/">

 

by :

 

<a class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}" href="/">

 

 

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

  • Robin Nonnweiler
  • Robin Nonnweiler's Avatar
  • Offline
  • Junior Member
More
13 years 4 months ago #95913 by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
YOU ARE THE BEST!

It just works fine! So thank you for your help BBC and juju!

Really great!

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

More
13 years 4 months ago #95914 by juju
Replied by juju on topic Item in a popup box - is this possible?
x-80 et y-80 are pixel value, so you can put :

 

x-400 and y-50 or something like that, to have a pop up who do a medium size...

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

More
13 years 4 months ago #95915 by BBC
Replied by BBC on topic Item in a popup box - is this possible?
Is this margin from end of the screen ?

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


Powered by Kunena Forum