The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed Oct 03, 2007 9:40 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Aug 01, 2007 3:32 pm
Posts: 77
Hi,
I want to show some information when the user clicked a link in a popup-window (like the mediamanager).
My first question: How can I add this functionality to my component and how to integrate it.
The second question is: How can I then show the page without the Joomla's menues, the heading and the side-blocks?
Thanks a lot
Aljoscha
PS: The information is dynamically loaded from the db for each entry.


Last edited by NeoAnderson1982 on Thu Oct 04, 2007 8:44 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Oct 03, 2007 4:54 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 22, 2007 8:41 am
Posts: 23
Location: Germany
Hi there,

look at this thread: http://forum.joomla.org/index.php/topic,218949.0.html
I posted there a snippet to display a button (popup or whatever you want). The problem with menu do I have too however...

bye, alex

_________________
o | polyvision


Top
 Profile  
 
PostPosted: Wed Oct 03, 2007 5:10 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Aug 01, 2007 3:32 pm
Posts: 77
Thanks for your reply and the snippets looks very interesting, but I can't use buttoms there. I need the pop-up-window using a href-link... But much thanks


Top
 Profile  
 
PostPosted: Wed Oct 03, 2007 5:55 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 6:58 am
Posts: 1469
Location: Tønsberg, Norway
First you need to include the modal script.

JHTML::_('behavior.modal');

The you define the link like this

Your text

This opens up a new window, like the mediamanager with size 640x200.

If you do not want the menus and stuff around, add &tmpl=component at the end of the url.

_________________
Jens-Christian Skibakk - Norwegian Translation Coordinator
MMS Blog - http://mms.pipp.no/
Joomla! i Norge / Joomla! in Norway - http://www.joomlainorge.no/


Top
 Profile  
 
PostPosted: Wed Oct 03, 2007 8:39 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 22, 2007 8:41 am
Posts: 23
Location: Germany
thanx a lot man !!!

_________________
o | polyvision


Top
 Profile  
 
PostPosted: Thu Oct 04, 2007 8:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 26, 2007 3:23 pm
Posts: 17
Thank you for this information.


Top
 Profile  
 
PostPosted: Thu Oct 04, 2007 8:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 26, 2007 3:23 pm
Posts: 17
Now. How to add pdf, print, and email links?


Top
 Profile  
 
PostPosted: Thu Oct 04, 2007 8:43 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Aug 01, 2007 3:32 pm
Posts: 77
thanks for the great answer jenscski!
This is very very helpful!
;D


Top
 Profile  
 
PostPosted: Wed Oct 24, 2007 5:58 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Sep 20, 2005 11:30 pm
Posts: 216
Location: Oregon
So how do I include that in my default.php template?
Code:
<?php
require_once (JHTML::_('behavior.modal'));
?><a class="modal" href="popup" rel="{handler: 'iframe', size: {x: 640, y: 200}}">The Text</a><?php


What goes in "popup"?

Basically I want to send some variables from my view into a print window - window with no menus.

Better yet - a tutorial on how to create a print view from a custom component.

_________________
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 80 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group