Need a popup window only with content not other page element
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.
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.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Mon Jul 16, 2007 9:15 am
Need a popup window only with content not other page element
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
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
- ranwilli
- Joomla! Master
- Posts: 19203
- Joined: Sun Feb 19, 2006 6:47 pm
- Location: Toledo, OH
- Contact:
Re: Need a popup window only with content not other page element
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:
That should work for you
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;");
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com
Stay ON the update path.
https://harpervance.com
-
- Joomla! Apprentice
- Posts: 9
- Joined: Mon Jul 16, 2007 9:15 am
Re: Need a popup window only with content not other page element
hey,,,,thanks a lot...
it works...
i will be grateful to u...thanks dear
it works...
i will be grateful to u...thanks dear
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Apr 13, 2006 7:39 pm
Re: Need a popup window only with content not other page element
i'm kind of coding newb. where do you insert that code?
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Apr 22, 2008 3:13 pm
Re: Need a popup window only with content not other page element
Thanks for the code provided...
To me, the following url made the popup worked fine
What I need to solve now is how to apply a class, so it looks nice!
Cheers, Maria
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('');" )>
Cheers, Maria
-
- Joomla! Apprentice
- Posts: 34
- Joined: Sat Mar 22, 2008 11:22 am
Re: Need a popup window only with content not other page element
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
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
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Mar 10, 2009 5:26 pm
Re: Need a popup window only with content not other page element
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:
That should work for youCode: 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;");
....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
-
- Joomla! Apprentice
- Posts: 40
- Joined: Mon May 11, 2009 11:16 pm
Re: Need a popup window only with content not other page element
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
hugh
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Jun 24, 2009 9:34 am
Re: Need a popup window only with content not other page element
very nice! but can somebody tell where that code has to be inserted.
thank you in advance.
thank you in advance.
- zkon
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Jul 12, 2009 10:39 am
Re: Need a popup window only with content not other page element
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
But i'm not sure if this is totally kosher, i'm just a newbie.
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.
-
- Joomla! Apprentice
- Posts: 16
- Joined: Tue Sep 02, 2008 3:36 pm
Re: Need a popup window only with content not other page ele
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
?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
-
- Joomla! Apprentice
- Posts: 17
- Joined: Mon Sep 14, 2009 6:43 am
Re: Need a popup window only with content not other page ele
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
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
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Aug 24, 2010 11:24 am
Re: Need a popup window only with content not other page ele
Hello everybody,
thanks to the suggestions on this page i managed to open a popup showing just the content I need, using the code:
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
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>
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
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sun Apr 18, 2010 8:16 pm
Re: Need a popup window only with content not other page ele
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
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
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Aug 17, 2008 10:26 am
Re: Need a popup window only with content not other page ele
Thank you! That works just great!mariadd wrote:
Cheers, Maria
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>
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Aug 30, 2012 11:09 pm
Re: Need a popup window only with content not other page ele
Hi Bladerz,
I'd like to try implementing your suggestion, but I would like to know where exactly to add the shown code?
Thanks a lot...
I'd like to try implementing your suggestion, but I would like to know where exactly to add the shown code?
I would appreciate if you could please specify the steps to follow.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>
Thanks a lot...