Page 1 of 1

Need a popup window only with content not other page element

Posted: Tue Mar 04, 2008 1:36 pm
by dev16885
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

Re: Need a popup window only with content not other page element

Posted: Sat Mar 08, 2008 9:54 pm
by ranwilli
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: Select all

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

Re: Need a popup window only with content not other page element

Posted: Sun Mar 09, 2008 4:52 pm
by dev16885
hey,,,,thanks a lot...
it works...
i will be grateful to u...thanks dear

Re: Need a popup window only with content not other page element

Posted: Tue Mar 25, 2008 8:58 pm
by Dumhead
i'm kind of coding newb. where do you insert that code?

Re: Need a popup window only with content not other page element

Posted: Thu Apr 24, 2008 2:34 pm
by mariadd
Thanks for the code provided...

To me, the following url made the popup worked fine

Code: Select all


<A href="javascript: window.open('index2.php?option=com_content&view=article&id=69&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

Re: Need a popup window only with content not other page element

Posted: Wed May 13, 2009 5:27 pm
by raulbox
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

Re: Need a popup window only with content not other page element

Posted: Wed Jun 24, 2009 8:25 am
by samvaGR
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: Select all

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.

Re: Need a popup window only with content not other page element

Posted: Sun Jun 28, 2009 12:29 am
by lehhugh
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

Re: Need a popup window only with content not other page element

Posted: Tue Jun 30, 2009 11:14 am
by tombraider
very nice! but can somebody tell where that code has to be inserted.
thank you in advance.

Re: Need a popup window only with content not other page element

Posted: Sun Jul 12, 2009 10:53 am
by zkon
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
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.

Re: Need a popup window only with content not other page ele

Posted: Wed May 12, 2010 8:46 pm
by omdawe
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

Re: Need a popup window only with content not other page ele

Posted: Fri Jun 04, 2010 9:23 am
by khanz82
I am using http://myhost/index.php?option=com_myco ... =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

Re: Need a popup window only with content not other page ele

Posted: Tue Aug 24, 2010 11:42 am
by adrienlibre
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: Select all

<A href="javascript: window.open('http://myurl/index2.php?option=com_content&view=article&id=12&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

Re: Need a popup window only with content not other page ele

Posted: Tue Apr 10, 2012 4:07 am
by inganious
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

Re: Need a popup window only with content not other page ele

Posted: Sat May 05, 2012 4:52 pm
by bladerz
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: Select all

<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.

Re: Need a popup window only with content not other page ele

Posted: Mon Nov 19, 2012 7:11 pm
by myjoomlauser
Hi Bladerz,

I'd like to try implementing your suggestion, but I would like to know where exactly to add the shown code?
Code:
<a href="javascript: window.open('http://yourdomain.com/index.php/hidden- ... '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...