- Posts: 119
COMMUNITY FORUM
Item in a popup box - is this possible?
- juju
- Offline
- Premium Member
Less
More
13 years 5 months ago #95886
by juju
Replied by juju on topic Item in a popup box - is this possible?
Hi !
I actually work on a website for a client and I have a lot of work to do.
Anyway, I know how open a pop-up window with your article, maybe also create a minimal view with nonly few fields in this pop-up. But I need time, so I'll try to work on it tonight or tomorrow, but I don't garantee anything...
I actually work on a website for a client and I have a lot of work to do.
Anyway, I know how open a pop-up window with your article, maybe also create a minimal view with nonly few fields in this pop-up. But I need time, so I'll try to work on it tonight or tomorrow, but I don't garantee anything...
Please Log in or Create an account to join the conversation.
- gerald sisimayi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
13 years 5 months ago #95887
by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
all good, thanx for the time at least
Please Log in or Create an account to join the conversation.
- Stephane ATTLANE
- Offline
- New Member
Less
More
- Posts: 2
13 years 5 months ago #95888
by Stephane ATTLANE
Replied by Stephane ATTLANE on topic Item in a popup box - is this possible?
There's easy thing to do is to use modal windows:
<a class="modal" href="<?php echo $this->item->link; ?>" > </a>
You put this code in category_item but you have to customize sqeleton.php to not display tpmenu, logo, ...
<a class="modal" href="<?php echo $this->item->link; ?>" > </a>
You put this code in category_item but you have to customize sqeleton.php to not display tpmenu, logo, ...
Please Log in or Create an account to join the conversation.
- gerald sisimayi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
13 years 5 months ago #95889
by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
although I code I dont know how to code this particular procedure you`re talking about.... so thanx but it wont help me :(
Please Log in or Create an account to join the conversation.
- Robin Nonnweiler
- Offline
- Junior Member
Less
More
- Posts: 25
13 years 4 months ago #95890
by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
Hi,
have you got a solution for the problem?
I also want to show my k2 items in a popup.
Would be really nice, if you have some information for me!
thanks
robin
have you got a solution for the problem?
I also want to show my k2 items in a popup.
Would be really nice, if you have some information for me!
thanks
robin
Please Log in or Create an account to join the conversation.
- gerald sisimayi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
13 years 4 months ago #95891
by gerald sisimayi
Replied by gerald sisimayi on topic Item in a popup box - is this possible?
Hi there,
Nope, no solution yet unfortunately. If anyone can help, please do!
Gem
Nope, no solution yet unfortunately. If anyone can help, please do!
Gem
Please Log in or Create an account to join the conversation.
- BBC
- Offline
- Platinum Member
Less
More
- Posts: 663
13 years 4 months ago #95892
by BBC
Replied by BBC on topic Item in a popup box - is this possible?
In category_item.php find:
<a href="<?php echo $this->item->link; ?>" 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>
And change to:
<a class="modal" rel="{handler:'iframe',size:{x:800,y:550}}" href="<?php echo $this->item->link; ?>&tmpl=component" 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>
Set "X" to satisfy your article content width.
You can do the same with Item Title.
In same file find:
<a href="<?php echo $this->item->link; ?>"> <?php echo $this->item->title; ?> </a>
and replace with:
<a class="modal" rel="{handler:'iframe',size:{x:800,y:550}}" href="<?php echo $this->item->link; ?>&tmpl=component"> <?php echo $this->item->title; ?> </a>
<a href="<?php echo $this->item->link; ?>" 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>
And change to:
<a class="modal" rel="{handler:'iframe',size:{x:800,y:550}}" href="<?php echo $this->item->link; ?>&tmpl=component" 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>
Set "X" to satisfy your article content width.
You can do the same with Item Title.
In same file find:
<a href="<?php echo $this->item->link; ?>"> <?php echo $this->item->title; ?> </a>
and replace with:
<a class="modal" rel="{handler:'iframe',size:{x:800,y:550}}" href="<?php echo $this->item->link; ?>&tmpl=component"> <?php echo $this->item->title; ?> </a>
Please Log in or Create an account to join the conversation.
- BBC
- Offline
- Platinum Member
Less
More
- Posts: 663
13 years 4 months ago #95893
by BBC
Replied by BBC on topic Item in a popup box - is this possible?
There is no CSS styling in modal box. If you want style as in article check Mediabox for JCE. Same principe, just change modal class to Mediabox class.
I haven´t tested it, guess it keeps styling.
I haven´t tested it, guess it keeps styling.
Please Log in or Create an account to join the conversation.
- BBC
- Offline
- Platinum Member
Less
More
- Posts: 663
- Robin Nonnweiler
- Offline
- Junior Member
Less
More
- Posts: 25
13 years 4 months ago #95895
by Robin Nonnweiler
Replied by Robin Nonnweiler on topic Item in a popup box - is this possible?
Hey BBC,
thank you very much, works really nice!
But I have one little more question. If I use this method, the popup loads the whole page with menu,logo,other modules etc. I'm able to hide them with css, but the loading time is proportionally high, because he loads all the scripts, css etc. again.
Is there any way to load really just the item?
thanks a lot!
robin
thank you very much, works really nice!
But I have one little more question. If I use this method, the popup loads the whole page with menu,logo,other modules etc. I'm able to hide them with css, but the loading time is proportionally high, because he loads all the scripts, css etc. again.
Is there any way to load really just the item?
thanks a lot!
robin
Please Log in or Create an account to join the conversation.