Open document in new window

Permalink Browser Info Environment
Hi,

Id like to know if it is possible to have the document open up in a new window instead of the same window.

If so how can this be done.

Thanks Brent

Type: Discussion
Status: New
Brentmarais
View Replies:
formigo replied on at Permalink Reply
formigo
Hi Brent

Yes. In the blocks view.php file, add: target="_blank" to both the anchors
(<a href etc...) on line 33 and line 50.

Anything that the browser can handle will now open in a new window or tab.
The download functionality remains unchanged.

Best

Ollie

On 29/05/2013 16:08, "concrete5 Community" <discussions@concretecms.com>
wrote:
Brentmarais replied on at Permalink Reply
Brentmarais
Hi,

Thank you for your reply.

I have done what you said and it doesn't seem to be working. Any ideas?

Link below

http://www.didiri.org.na/index.php/side-menu/documents/...

Regards Brent



On 2013/05/29 5:45 PM, "concrete5 Community" <discussions@concretecms.com>
wrote:
formigo replied on at Permalink Reply
formigo
Ah. You're using the custom template. I have you the code amends for the
view.php

Line 83 and 97 in templates/table/view.php

That should do it

Best

Ollie

On 29/05/2013 17:04, "concrete5 Community" <discussions@concretecms.com>
wrote:
Brentmarais replied on at Permalink Reply
Brentmarais
Hi,

Thank you for your reply.

I assume you wanted me to add the target="_blank" to those two lines. I have
done so and still doesn't seem to have worked.

Regards Brent


On 2013/05/30 10:20 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.