I am having serious problems getting this to work. Anyone care to gimmie some advice on the subject? My problem is that I want one of the links in the menu field of my postnuke to launch in a new window...
Anyone?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Setting things in the menu with target="_blank"
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 367
Actually it will work. Here is how I use it on my own site.
Just for starters, let's look at the Moodle elearning system which I use. It isn't a PostNuke module, isn't integrated into myPostNuke site at all with the pnMoodle utility since I wanted to keep my elearning user base separate from my PostNuke base.
In my menu this is the way I have it set so that when you are on my PostNuke site and you click the eLearning link Moodle will open up in a new window for you.Give it a try and see, just go to my site, click on eLearning, and see if a new window doesn't open up.Quote
http://www.elearn.irarichardsmith.com" target="_blank
I didn't have any actual PostNuke modules opening up into a new window, but I played around with one and also got it to work. Here is how you would do itIn this particular case I just played around with the pnEncyclopedia module. True, you do have to specify the line differently than if you were just calling the module by itself since the standard way of calling this particular module isQuote
index.php?module=pnEncyclopedia&func=main"target="_blank
Quote
{pnEncyclopedia}
I have set my pnEncyclopedia module back to normal for now so it won't open a new window if you visit my site. However, if you use the same format on your site, just replacing the module name with whatever module you are wanting to open in a new window, it should open up in a new window for you.
Hope this helps. -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Jul 04, 2005
- Posts: 72
I'm trying to do a link to a launchcast station where it opens in a new window. I tried your solution but it still doesn't seem to work quite right. Check out http://www.beatleblog.com and click on BeatleBlog Radio in the menu.
Currently the link in the menu block looks like http://launch.yahoo.com/lc/?rt=0&rp1=0&rp2=1215317577"target"=_blank
While the launchcast player will open in a new smaller window you are still transferred from my site to the launchcast site.
Any ideas? -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 349
little details ...
should be ..."target="_blank,
NOT ..."target"=_blank
Note the = needs to be within the quotes.
BTW, you can leave off theportion of the URL, and just use the URL fragment following this, if it is w/in your site. At least that works for me.Code
http://www.yoursite.com
Again tho,
I would highly encourage you to follow "best practices" guidelnes, and NOT force opening in a new window. This is always a user option, using a right click - open in new window command.
If you FORCE opening in a new window, the user conversely does not have the choice of selecting to open in same window.
Having said this, I do have to admit that there are places in my sites where I have seen fit to violate this "best practices" recommendation. Slap my own hands, I do. :twisted: -
- Rank: Registered User
- Registered: Nov 05, 2004
- Last visit: Oct 21, 2009
- Posts: 24
Ok, I have also tried everything and I can't get a new window to pop up from a link in my main menu.
I copied exactly like you said and its not working...any known alternatives?
- Moderated by:
- Support
