- Posts: 4
COMMUNITY FORUM
Attachments Not Showing
- Reu Smith
-
Topic Author
- Offline
- New Member
Each item in this category has a downloadable document that goes with each item. The items are there but for some reason they are not showing.
Here is what I have done so far -
- Checked show attachments in Item view options in category listings for Case Study category
- Checked show attachments in Item view options in Case Study category
- Checked show attachments in parameters (even though it is for rss)
- Checked category_item.php for correct code
- Ran debug to see if there was an error - no error pertaining to attachments
- Added a extra field to a single item, it shows up.
Using
- Joomla 3.2
- K2 v2.6.7
- PHP 5.3.26
- Theme Yoo-Nano3
- K2 Template Default
- Chrome, Safari, FF browsers - Cache is turned off
I can't seem to get the attachments to show up in category or item view. I can get extra fields to show but not the attachments. Help me out. I am at a loss of why it is not showing.
Please Log in or Create an account to join the conversation.
- olsen
-
- Offline
- Elite Member
- Joomla and K2 Freelancer
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Also make sure the Case Study category is not inheriting its settings from another category.
Please Log in or Create an account to join the conversation.
- Nick Bode
-
- Offline
- New Member
- Posts: 4
I checked the main files. I don't remember all the specific files right now. I think - item.php, category.php, and a few others.
What should I be looking for and in which files? I could be looking at all the wrong lines of code.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
If you can see the attachments then you have to download a fresh copy of K2 read this tutorial - getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates - and check your overrides.
Please Log in or Create an account to join the conversation.
- Nick Bode
-
- Offline
- New Member
- Posts: 4
I see the code to call for attachments in category_item.php in lines 195 and 223 through 241.
I cleared the cache and the disabled the cache in my browser.
Still not showing.
Please Log in or Create an account to join the conversation.
- Reu Smith
-
Topic Author
- Offline
- New Member
- Posts: 4
Nick Bode wrote: I had hope, I updated and made a new sub-template. No change.
I see the code to call for attachments in category_item.php in lines 195 and 223 through 241.
I cleared the cache and the disabled the cache in my browser.
Still not showing.
That is crazy. I used my google auth to log-in and it changed my username. The nick bode are replies from Reu
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Deltafidesign
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Are the attachments visible and downloadable through the backend?
Make sure that they are present in the media/attachments folder.
Please Log in or Create an account to join the conversation.
- Detlef
-
- Offline
- New Member
- Posts: 3
Yiota Ziaggou wrote: Hello,
Are the attachments visible and downloadable through the backend?
Make sure that they are present in the media/attachments folder.
I have the same issue since joomla 3.2.1 and K2 2.6.7
A download through the backend is not possible. New page with "File doesn t exit" comes up!
Hope for a simple solution
EDIT:
It will NOT work when you choose a file from the server!
II WORKS when you choose a file from the PC
Regards
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Download it from here: getk2.org/assets/get/
Please Log in or Create an account to join the conversation.
- Detlef
-
- Offline
- New Member
- Posts: 3
Yiota Ziaggou wrote: Please try to upgrade with K2 SVN version 2.6.8 and check again.
Download it from here: getk2.org/assets/get/
Same result,also with the dev version....
It will NOT work when you choose a file from the server!
II WORKS when you choose a file from the PC
regards
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Usually when the file is big there is the issue with memory_limit in your server.
Please Log in or Create an account to join the conversation.
- Detlef
-
- Offline
- New Member
- Posts: 3
Yiota Ziaggou wrote: What I need you to try is to check on a smaller sized attachment file to see if you can download that one.
Usually when the file is big there is the issue with memory_limit in your server.
It s not an issue about sizes for me!
We know, file from PC works well.
When I choose a file from server e.g
IMG_258724_1254.jpg --> its works I can download from backend
But when I have spaces between
IMG 258424 1235.jpg --> NOT working. File looks like IMG%2025824%201235.jpg
Also I figured out, when I choose a file from server I HAVE to fill the Title manually. When not, I don t see the download link at the front end.
hope this will help you
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
For the empty title you can make a modification to the item.php or the category_item.php or the module (depending on where you want them to show) in your template's overrides (if you do not use already you can read here:http://getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates)
Check if the title is empty to load something like an icon or a specific text otherwise to load the title.
Please Log in or Create an account to join the conversation.