Problem with attachments

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Oct 05, 2016 7:00 pm
Reply with quote
Report this post
good evening I am to call for help because in an article using k2 I added an attachment but it appears I checked the display of the article and of the categories but nothing .... the link is http://www.atleticobasket.it/ athletic / component / k2 / item / 309-document-prova.html

Thank you in advance for the help
Marco Lanzarini
User avatar
Junior Boarder

teitbite
Thu Oct 06, 2016 11:38 am
Reply with quote
Report this post
Hi

I cannot see Your page unfortunatelly. Link is showing me "Server cannot be found" message. File attachment is in the same group as facebook, twitter and google+ button. So maybe if You are not using any of this buttons attachment is hiding somehow. Try edit file /html/com_k2/template/default/item.php find code:

Code: Select all
            <?php if($params->get('itemAttachments') && count($this->item->attachments)): ?>
            <div class="itemAttachmentsBlock">
               <span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
               <ul class="itemAttachments">
                  <?php foreach ($this->item->attachments as $attachment): ?>
                  <li>
                     <a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?>
                        <?php if($params->get('itemAttachmentsCounter')): ?>
                        <span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
                        <?php endif; ?>
                     </a>
                  </li>
                  <?php endforeach; ?>
               </ul>
            </div>
            <?php endif; ?>


cut it and put in a different place before or after other elements You are sure are displaying right now.
User avatar
Moderator


cron