Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Linking and Windows

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 324 Views
  • Slim-Jim
    Avatar
    Community Member
    4 Posts

    Linking and Windows Link to this post

    Hi all.,

    I'm using SS3 and loving it.
    I have a question I hope someone might have the solution to.
    I've selected an image in the CMS, clicked on link, select 'download a file', select the picture at full size, select open in a new window.
    The question is, can I have it open the new page in a pop up sized window rather than the page opening as a full size webpage?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Linking and Windows Link to this post

    Hi there,

    The option to open the link in a new window simply adds target="_blank" to new links, as far as I know. This just opens a new tab in the users browser.

    To have links open in a new window in a pop up sized window, you'll have to attach some Javascript to the page which targets any links and sets the pop up size, etc.

    An example of code doing that can be found here: http://www.quirksmode.org/js/popup.html

    Sean

  • Slim-Jim
    Avatar
    Community Member
    4 Posts

    Re: Linking and Windows Link to this post

    Thanks Sean,

    Sounds like a little project for the weekend

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