Need a popup window only with content not other page element

Need help with the Administration of your Joomla! site? Pop your questions in here.

Moderator: General Support Moderators

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.
dev16885
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Jul 16, 2007 9:15 am

Need a popup window only with content not other page element

Postby dev16885 » Tue Mar 04, 2008 1:36 pm

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

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 18547
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

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

Postby ranwilli » Sat Mar 08, 2008 9:54 pm

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

dev16885
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Jul 16, 2007 9:15 am

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

Postby dev16885 » Sun Mar 09, 2008 4:52 pm

hey,,,,thanks a lot...
it works...
i will be grateful to u...thanks dear

Dumhead
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Apr 13, 2006 7:39 pm

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

Postby Dumhead » Tue Mar 25, 2008 8:58 pm

i'm kind of coding newb. where do you insert that code?

mariadd
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Apr 22, 2008 3:13 pm

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

Postby mariadd » Thu Apr 24, 2008 2:34 pm

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

raulbox
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Sat Mar 22, 2008 11:22 am

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

Postby raulbox » Wed May 13, 2009 5:27 pm

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

samvaGR
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Tue Mar 10, 2009 5:26 pm

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

Postby samvaGR » Wed Jun 24, 2009 8:25 am

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.
Greetings from the island of Crete, Greece

lehhugh
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Mon May 11, 2009 11:16 pm

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

Postby lehhugh » Sun Jun 28, 2009 12:29 am

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

tombraider
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Jun 24, 2009 9:34 am

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

Postby tombraider » Tue Jun 30, 2009 11:14 am

very nice! but can somebody tell where that code has to be inserted.
thank you in advance.

User avatar
zkon
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jul 12, 2009 10:39 am

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

Postby zkon » Sun Jul 12, 2009 10:53 am

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

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.

omdawe
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Sep 02, 2008 3:36 pm

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

Postby omdawe » Wed May 12, 2010 8:46 pm

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

khanz82
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Mon Sep 14, 2009 6:43 am

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

Postby khanz82 » Fri Jun 04, 2010 9:23 am

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

adrienlibre
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Aug 24, 2010 11:24 am

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

Postby adrienlibre » Tue Aug 24, 2010 11:42 am

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

inganious
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Apr 18, 2010 8:16 pm

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

Postby inganious » Tue Apr 10, 2012 4:07 am

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

bladerz
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Aug 17, 2008 10:26 am

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

Postby bladerz » Sat May 05, 2012 4:52 pm

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.

myjoomlauser
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Aug 30, 2012 11:09 pm

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

Postby myjoomlauser » Mon Nov 19, 2012 7:11 pm

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


Return to “Administration - 1.0.x”

Who is online

Users browsing this forum: No registered users and 0 guests