The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 16 posts ] 
Author Message
PostPosted: Tue Mar 04, 2008 1:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 16, 2007 9:15 am
Posts: 9
Hi,

I am making a site using joomla. I gave a link on static content. On click of that link i want
to open a popup window in which the content related to that link will be displayed.
But when the popup window get open it is having the complete page...like header , menus,
footer etc. but i want to show only the content. I m not getting the solution. Please
help me asap.

Thanks,
dev


Top
 Profile  
 
PostPosted: Sat Mar 08, 2008 9:54 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Feb 19, 2006 6:47 pm
Posts: 17905
Location: Toledo, OH
By shear dumb luck, what you need is the Joomla Print Preview.

Take the url of the article you want to present like that

example:

index.php?option=com_content&task=view&id=59&Itemid=140

and make it:

index2.php?option=com_content&task=view&id=59&Itemid=140

then you can craft a link something like:

Code:
aI("text=Link Text;url=
index2.php?option=com_content&task=view&id=59&Itemid=140;target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=800,height=600;");


That should work for you

_________________
Don't HACK the Joomla! core. Extend and Override.
http://harpervance.com -
Live Joomla! Help available at the site M-F, 9-12 am edt 2-5pm edt.
by appointment on evenings and weekends.


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 4:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 16, 2007 9:15 am
Posts: 9
hey,,,,thanks a lot...
it works...
i will be grateful to u...thanks dear


Top
 Profile  
 
PostPosted: Tue Mar 25, 2008 8:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Apr 13, 2006 7:39 pm
Posts: 11
i'm kind of coding newb. where do you insert that code?


Top
 Profile  
 
PostPosted: Thu Apr 24, 2008 2:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 22, 2008 3:13 pm
Posts: 1
Thanks for the code provided...

To me, the following url made the popup worked fine

Code:

<A href="javascript: window.open('index2.php?option=com_content&amp;view=article&amp;id=69&amp;Itemid=95','','status=no, target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=600,'); void('');" )>



What I need to solve now is how to apply a class, so it looks nice!

Cheers, Maria


Top
 Profile  
 
PostPosted: Wed May 13, 2009 5:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 22, 2008 11:22 am
Posts: 34
i found the solution !!

create a menu item for the articule u want to. then edit the menu item and change it's type to 'external link' then modify the link by changing .............index.php?...... to ....index?.php?...


http://www.finreetecto.com/index2.php?/information.html

http://www.finreetecto.com/index.php?/information.html

hope this works for you too.


Report this post


Top
 Profile  
 
PostPosted: Wed Jun 24, 2009 8:25 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 10, 2009 5:26 pm
Posts: 18
ranwilli wrote:
By shear dumb luck, what you need is the Joomla Print Preview.

Take the url of the article you want to present like that

example:

index.php?option=com_content&task=view&id=59&Itemid=140

and make it:

index2.php?option=com_content&task=view&id=59&Itemid=140

then you can craft a link something like:

Code:
aI("text=Link Text;url=
index2.php?option=com_content&task=view&id=59&Itemid=140;target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=800,height=600;");


That should work for you





....Dear friend this trick worked fine...
I tried it with the mad blanks component I have istalled (http://extensions.joomla.org/extensions ... 67/details).. this is to create quizzes. Among some other things I am trying to work out I had also an other with the popup. The first question apears fine without the rest of the template... only the module, but when I go to "next" the whole page is displayed with the whole template and without going to the next question.

_________________
Greetings from the island of Crete, Greece


Top
 Profile  
 
PostPosted: Sun Jun 28, 2009 12:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 11, 2009 11:16 pm
Posts: 40
i would appreciate much if someone in here could show me step by step where to insert this given codes for popup window. thanks!
hugh


Top
 Profile  
 
PostPosted: Tue Jun 30, 2009 11:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 24, 2009 9:34 am
Posts: 7
very nice! but can somebody tell where that code has to be inserted.
thank you in advance.


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 10:53 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Jul 12, 2009 10:39 am
Posts: 3
I noticed that you can turn off the title, menu and other acutriments that accompany a template by just including "tmpl=component" in the url, eg

Quote:
http://myhost/index.php?option=com_mycomp&task=display&tmpl=component


index2.php pretty much does this, however for me running a component rather than displaying an article, i got a 404 error when i used index2.php, but putting the extra parameter in the url worked a treat.

But i'm not sure if this is totally kosher, i'm just a newbie.


Top
 Profile  
 
PostPosted: Wed May 12, 2010 8:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 02, 2008 3:36 pm
Posts: 16
if you use SEF on just ad
?tmpl=component&print=1&layout=default&page=
after the .html

example:

http://www.yourdomain.com/whatever.html ... ault&page=

Shows only the page content without anything else


Top
 Profile  
 
PostPosted: Fri Jun 04, 2010 9:23 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 14, 2009 6:43 am
Posts: 17
I am using http://myhost/index.php?option=com_mycomp&task=display&tmpl=component to show the articles. But what I need to show is the articles and a photo gallery in the pop up without the other modules like menus and all.

How do i achieve this? Is there a way to display a gallery in a content article where they pop up in a nice way and the rest of the modules are turned off if you like


Top
 Profile  
 
PostPosted: Tue Aug 24, 2010 11:42 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Aug 24, 2010 11:24 am
Posts: 1
Hello everybody,
thanks to the suggestions on this page i managed to open a popup showing just the content I need, using the code:

Code:
<A href="javascript: window.open('http://myurl/index2.php?option=com_content&amp;view=article&amp;id=12&amp;Itemid=40','','status=no, target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=600,'); void('');" )>Article Name</a>


This works perfectly for a public article or module, but in my case I need to reach a registered module, and what happens is that the login module that appears at first is not at all isolated and alone, but appears with header, menus, etc etc.
Then, if I login, I finally get only my module on the popup, without anything else.
Can anybody help me to get rid of other parts of the page also when the login module appears?

Thank you so much for your help,
Adri


Top
 Profile  
 
PostPosted: Tue Apr 10, 2012 4:07 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 18, 2010 8:16 pm
Posts: 10
Hello

I want something like that too . But my thing is little different . I,m creating a website which will show articles in homepage like pinterest box . http://pinterest.com/
And when a user will click in one of the article he can see the full article in a popup box . Its same like pinterest . I,m using k2 and joomla 2.5 is there any solution ? Please help me

Thanks


Top
 Profile  
 
PostPosted: Sat May 05, 2012 4:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Aug 17, 2008 10:26 am
Posts: 3
mariadd wrote:

Cheers, Maria

Thank you! That works just great!

You may open almost anything in a popup by creating a hidden menu link to it. Here's how to do it:

1. Go to the back end of Joomla and log in. Under Menus, pick Menu Manager. Click New to create a new menu. Call it hiddenmenu (all one word). Fill in "hiddenmenu" for the 4 blanks presented.
2. When a new menu is created, a module to go with the menu is also created. However, that module is not published. DO NOT publish the module.
3. Now you can create links on the hiddenmenu as you usually do, but since there's no module to display them, the links are "hidden" on the site. However, you can still assign modules to those pages, and you've still got a URL to link to them.

Suppose you created a menu item in the hiddenmenu with item alias: "hidden-menu-alias". Then you may use:
Code:
<a href="javascript: window.open('http://yourdomain.com/index.php/hidden-menu-alias?id=XX&other_options_here&tmpl=component','','status=no, target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=600,'); void('');" )>LINK TEXT HERE</a>

The above URL is valid when SEF is enabled (Joomla 2.5). If not, change it accordingly.


Top
 Profile  
 
PostPosted: Mon Nov 19, 2012 7:11 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Aug 30, 2012 11:09 pm
Posts: 10
Hi Bladerz,

I'd like to try implementing your suggestion, but I would like to know where exactly to add the shown code?
Quote:
Code:
<a href="javascript: window.open('http://yourdomain.com/index.php/hidden-menu-alias?id=XX&other_options_here&tmpl=component','','status=no, target=miniwin;targetfeatures=toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=600,'); void('');" )>LINK TEXT HERE</a>


I would appreciate if you could please specify the steps to follow.

Thanks a lot...


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



Who is online

Users browsing this forum: No registered users and 14 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