-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change "Download" name with real name. #17
Comments
see 'linktext' in the documentation use code below if you want to show the filename in the jdownloads layout Though be aware, there is a bug in jdownloads 3.9.8.3.4 with the {file_name} in some layouts. |
Thanks, I want to show the file name title ( testfile1 ), but it seems there is a problem with the jdownloads placeholder {file_title}. It doesn't work properly. |
That is because the placeholder contains not only the title but also htmlcode for the edit button behind it. Best solution would be if jdownloads gets an extra placeholder which only contains the file title text. update: looked at the code. I created a topic at jdownloads. |
I posted a solution in the jdownloads. Here is the solution if you want to try it your self: create a placeholder: {file_title_only} /components/com_jdownloads/views/category/tmpl/default.php /components/com_jdownloads/views/downloadS/tmpl/default.php /components/com_jdownloads/views/download/tmpl/default.php |
Тhanks Tazzios, I made the changes and everything works fine. I have one more question, Can I change link settings in Jdownloads Latest modul - joomla/modules/mod_jdownloads_latest/tmpl/default.php to use your plugin link for direct download ( line:75 ) |
to prevent overriding the changes you might want to look at joomla overrides For the module you can copy and rename the file to prevent overwriting with an update( or also use the joomla override location). Not sure if this will work can`t test it at the moment. I think there is also need for content.prepare somewhere replace the placeholder. |
Hello, I have a question
Can I open pdf with "pdf.js" if I click on "testfile 1" link or
Can I change name "Download" with real download name "testfile 1" ?
Thanks.
The text was updated successfully, but these errors were encountered: