How can I modify the File field link behavior?

More
12 years 10 months ago #16682 by comicbookguy
Hello,

Looking for a little help. I have a couple fields of the type 'File'. On the front end, when the link is clicked the files are offered as a download. In my case the files will only be .pdf documents. I need to change those links to a direct link so the .pdf will 'open' in a new window, rather than 'download'.

Could anyone point me in a direction to solve this? I'm not sure where to start; Is it part of the core or would I look in the flexicontent com folder

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #16711 by fingo
Hi,

Browse to 'plugins/flexicontent_fields/file.php' and then go to line 213.

You'll find the functionalities here.

Also, to ensure you don't have the 'download' button and download icon appearing, make sure to set 'Use mime icon' and 'Use download button' to 'No' in the field settings.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.270 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline