[solved] Problem content=link and target=_blank

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

[solved] Problem content=link and target=_blank

Post by erport »

Hi everyone !

I have a little problem with CMSms 1.1 :

when I choose "link" as content type, it works fine excepted the possibily to choose the target as "_blank"... How can I do ? I reallly need it !

Thanks for your help,

Regards.
Last edited by erport on Sun Aug 26, 2007 8:45 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem content=link and target=_blank

Post by Dr.CSS »

7th line down drop down says Target: blank is in there...
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

Re: Problem content=link and target=_blank

Post by erport »

thanks, Mark, for your interest and your answer but I don't understand it (I'm a poor french...). I know that blank is to be chosen in the 7th line, and I've choosen it, but il doesn't work at all... In the source code, I have :

linkname
and no linkname
or 7.1: linkname.

Perhaps it's because I work on an old server with :

php : 4.4.1-0.dotdeb.2
mysql : 3.23.49
mode_safe : on

In the content, I have :

Content type : link
Title : linkname
Menu text : linkname
Parent : 7.1
Link to file (instead of URL) : None (use URL Above)
Target : _blank
Active : yes
Show in Menu : yes
...

I think I made the good choice, no ? Can you help me more ? Thanks for your help,

regards.
jce76350
Beta Tester
Beta Tester
Posts: 2095
Joined: Mon May 29, 2006 1:20 pm

Re: Problem content=link and target=_blank

Post by jce76350 »

hi,

I think the problem is on the last file lib/classes/contenttypes/Link.inc.php
with the last svn Révision: 4078
Modified Mon Aug 20  by tsw
You have NOT the possibily to choose the target as "_blank"

So if you test with the  lib/classes/contenttypes/Link.inc.php
Revision 3880 - Modified Tue Apr 24 (original into cms1.1)
That's OK for me

Please confirm
Thanks
Jean-Claude Etiemble MyPageFr
Pierre M.

Re: Problem content=link and target=_blank

Post by Pierre M. »

It seems Jean-Claude has solved things again : it was ok with my 1.1rc2 test. I've never looked at SVN.

Pierre M.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem content=link and target=_blank

Post by Dr.CSS »

if you use 'Target: none' it some times works for blank also...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Problem content=link and target=_blank

Post by tsw »

jce76350 wrote: Please confirm

confirmed, fixed in rev 4089
jce76350
Beta Tester
Beta Tester
Posts: 2095
Joined: Mon May 29, 2006 1:20 pm

Re: Problem content=link and target=_blank

Post by jce76350 »

Hi,
confirmed, fixed in rev 4089
Ok for me
Thanks
Jean-Claude Etiemble MyPageFr
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

Re: Problem content=link and target=_blank

Post by erport »

thanks everybody ! It doesn't work for me, but I think it's my sfault (I search, I search...).

Regards.
User avatar
Biggles_downunder
New Member
New Member
Posts: 9
Joined: Wed Jun 04, 2008 2:54 am

Re: [solved] Problem content=link and target=_blank

Post by Biggles_downunder »

Hm, I don't think this problem is solved as I am having exactly this sort of problem.

Visit the website I have created for our school at www.tvcs.sa.edu.au and click on the Web Preferences item - it should open a new instance as I have set the target of the link to _blank, but it doesn't!
Pierre M.

Re: [solved] Problem content=link and target=_blank

Post by Pierre M. »

Biggles, on the wild Internet you run nothing but the latest official stable CMSms, don't you ? Hence 1.4.1. This version can report a lot of context settings helpfull for support. Please use it to give us more information to try to help you.

Pierre M.
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

Re: [solved] Problem content=link and target=_blank

Post by erport »

Biggles, i think it's because you use the template Grass Stains. I had the same problem with it, and when i have changed (to underground one), the links work with "target="_blank".
Sorry for my poor english ;-) !
Regards,
Eric
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] Problem content=link and target=_blank

Post by Dr.CSS »

The template doesn't make a difference as to whether a link will get set to _blank or if it will work...

It has to do with how you do it with how it is set when creating it, if you use external link as Content Type: then you get a choice to set it blank as done here, click blank...

http://multiintech.com/

If you are using an older ver. of CMSMS then that may be the problem, always try and keep up to date...
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

Re: [solved] Problem content=link and target=_blank

Post by erport »

mark wrote: The template doesn't make a difference as to whether a link will get set to _blank or if it will work...
except when the menu uses javascript, no ?
Regards,
Eric
erport
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 24, 2007 3:24 pm

Re: [solved] Problem content=link and target=_blank

Post by erport »

mark wrote: The template doesn't make a difference as to whether a link will get set to _blank or if it will work...
I have a probe ! I have 2 cmsms 1.41, on the same server, on the same base (but with different prefix).
The first one use Grass Stains template : http://www.eric-portal.ac-versailles.fr/cmsmadesimple/
The second one use Underground template : http://www.eric-portal.ac-versailles.fr/cms/

Same adjustement for the two links :
Content type : external link
target : _blank

Click "Liens" to see...

The first one open the windows without target="_blank".
code source :

Code: Select all

<li><a href="http://www.grain2tice.fr/liens/">Liens</a></li>
The second one open the windows with target="_blank".
code source :

Code: Select all

<li><a href="http://www.grain2tice.fr/liens/" target="_blank"><dfn>9: </dfn><span>Liens</span></a></li>
So, Mark, what you said about the template ? I think you're wrong, sorry.
Regards,
Eric
Post Reply

Return to “CMSMS Core”