Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » change target blank to window.open

Discuss the Forum Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 723 Views
  • Win-Track
    Avatar
    Community Member
    4 Posts

    change target blank to window.open Link to this post

    I'm a newbee and this is probably the last thing that should be my first post;-) So much to learn!

    I am very impressed with SilverStripe so far. One thing that really impresses me is the amount of valid code!

    One place in the forum module puts out invalid code and I think it would be a trivial fix if I knew where to change the code. Perhaps there is a good reason for using a target _blank but i was wondering if it could instead use "onclick=window.open(this.href); return false;"

    Is that a simple fix? Could someone tell me how to do it?

    Thanks,
    Wade

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: change target blank to window.open Link to this post

    I had a look at the module the the only place I could find it is in the sign up form

    Allow <a href='http://www.gravatar.com/' target='_blank'>Gravatars</a>

    You can find that code (at least in trunk) in forum/code/ForumHolder.php line 80 and Forum.php line 223 but both of those locations are code for the backend. Where on the front end is it outputting the target code?

  • Win-Track
    Avatar
    Community Member
    4 Posts

    Re: change target blank to window.open Link to this post

    Argg!!! SORRY, had my head in the forum module but it is actually in the content field of a page. Will repost.

    Wade

    723 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.