- Posts: 7
COMMUNITY FORUM
Attachment Problem
- Philippe Ranc
-
Topic Author
- Offline
- New Member
Less
More
12 years 8 months ago #102267
by Philippe Ranc
Attachment Problem was created by Philippe Ranc
Hello,
I've made a site with Joomla and K2 for a friend and I've realized that it can not download attachments. They appear, they are actually placed in the correct directory, but it is as if the URL of the attachment was truncated.
example:
I load an image attachment. Backend, I can download it. Here is the link
www.formidgraphic.ch/administrator/index.php...fb81e96d76cf73f58b14
And frontend, here is the URL
formidgraphic.ch/a-propos/item/download/5
Visiblemen the rest of the way gone because if I add the following "_01f6345a21cffb81e96d76cf73f58b14" it works.
I said that I do not use URL rewritting other than native joomla.
Who has an idea ...
thank you for your help.
___
Technical Data:
K2 v2.5.7
Joomla! 2.5.6
I've made a site with Joomla and K2 for a friend and I've realized that it can not download attachments. They appear, they are actually placed in the correct directory, but it is as if the URL of the attachment was truncated.
example:
I load an image attachment. Backend, I can download it. Here is the link
www.formidgraphic.ch/administrator/index.php...fb81e96d76cf73f58b14
And frontend, here is the URL
formidgraphic.ch/a-propos/item/download/5
Visiblemen the rest of the way gone because if I add the following "_01f6345a21cffb81e96d76cf73f58b14" it works.
I said that I do not use URL rewritting other than native joomla.
Who has an idea ...
thank you for your help.
___
Technical Data:
K2 v2.5.7
Joomla! 2.5.6
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 8 months ago #102268
by Lefteris
Replied by Lefteris on topic Re: Attachment Problem
Hi. It's because your template overrides do not include the correct link. In each K2 update we track the changes that need to be made in the layouts ( getk2.org/documentation/tutorials/item/77-k2-template-override-package-comparison ). So you just need to update your layouts with the new links.
Please Log in or Create an account to join the conversation.
- Philippe Ranc
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
12 years 8 months ago #102269
by Philippe Ranc
Replied by Philippe Ranc on topic Re: Attachment Problem
Hi
Thanks for your answer... but this is not really working... probably i didnt understand how to install it.
I've the latest version of K2... 1.5.7.
Can u explain me one more time...
I enjoy to read you soon.
Best regards.
Phil
Thanks for your answer... but this is not really working... probably i didnt understand how to install it.
I've the latest version of K2... 1.5.7.
Can u explain me one more time...
I enjoy to read you soon.
Best regards.
Phil
Please Log in or Create an account to join the conversation.
- Philippe Ranc
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
12 years 8 months ago #102270
by Philippe Ranc
Replied by Philippe Ranc on topic Re: Attachment Problem
Hi again...
I've found...
File: category_item.php
#line 202:
before:
<a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$attachment->id); ?>">
juste need to remplace by
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>">
Probably a conflit of version.
Thanks for your help.
Phil
I've found...
File: category_item.php
#line 202:
before:
<a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$attachment->id); ?>">
juste need to remplace by
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>">
Probably a conflit of version.
Thanks for your help.
Phil
Please Log in or Create an account to join the conversation.