× Any questions about Documents Sellers, post it here .

Show File Size doesn't work

  • scripto
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 4 weeks ago #154383 by scripto
Show File Size doesn't work was created by scripto
Hi, I have set Show Hits, Show File Size, Creation date etc to yes in the configuration, but it doesn't show up in the document page. So I added this to the template override file :
<ul>
<?php if ($this->config->show_dm_creation_date) { ?>
<li><i class="fi-calendar"></i> <?php echo JText::_('Created at'); ?>
<strong><?php echo JHTML::_('date', $this->item->created_date, $this->config->date_format); ?></strong></li>
<?php } if ($this->config->show_dm_modified_date) { ?>
<li><i class="fi-calendar"></i> <?php echo JText::_('Updated at'); ?> <strong><?php echo JHTML::_('date', $this->item->modified_date, $this->config->date_format); ?></strong></li>
<?php } if ($this->config->show_dm_filesize) { ?>
<li><i class="fi-page"></i> <?php echo JText::_('DMS_FILESIZE') ?> <strong><?php echo $this->item->data->size; ?></strong></li>
<?php } if ($this->config->show_hits) { ?>
<li><i class="fi-eye"></i> <strong><?php echo $item->hits; ?></strong> <?php echo JText::_('DMS_HITS'); ?></li>
<?php } ?>
</ul>
 
And it's working fine, except the file size. It return EMPTY.
Do you have any idea?
Attachments:

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

More
2 months 3 weeks ago #154412 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Show File Size doesn't work
That code should work well. I do not have any idea why it is not working

If you can submit a support ticket sending me:

1. Super admin account

2. Link to the page

I will be happy to check

Tuan

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