PDF files on homepage

  • taractrit

    #2190

    Hello,

    I have a question. I habe some PDF files on my homepage. When someone open the files, then the homepage will be closed and just the pdf file is open. What I should do, so that the pdf files will be open as an extra page?

    Thank you for the help in advance!

    Josh

    #19258

    Use target="_blank" in the html link to the pdf file.

    taractrit

    #19259

    Thank you for your reply. But I’m not sure, where exactly I have to place this.

    Josh

    #19260

    How are you inserting your PDF files?

    taractrit

    #19261

    I click on the button “add file”(a star)

    then: select file

    after upload: insert in article

    Josh

    #19262

    Okay. And after you insert the file, in the HTML editor, what is the code being used to insert the PDF?

    You should see a link, something like:

    <a href="PATH TO SOME FILE">

    Make it look like this:

    <a target="_blank" href="PATH TO SOME FILE">

    taractrit

    #19263

    it functions, thank you!!! Is there any other possibilities to do that? It takes a lot of time

    Josh

    #19264

    You’re welcome.

    When you are inserting a file, is there not an option to have it open in a new window?

    taractrit

    #19265

    no, I can not find such an option

    Josh

    #19266

    Well, then at this point, you probably have the best solution. It would probably require modifying core files to make such an option permanent.

    taractrit

    #19267

    Ok, thank you again for your help!!!

    taractrit

    #19268
    Mod

    Kenneth John Odle

    #19269

    If you don’t want to go to the HTML editor, you can select the link (double-click on it) in the visual editor, and then click on the “link” button (looks like three chain links) in the TinyMCE editor. This window will pop up:

    Click on the box that says “Open link in new tab” and then “Update”

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.