- Posts: 20
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Show File Size doesn't work
- scripto
- Topic Author
- Offline
- Junior Member
-
Less
More
2 years 1 month 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 :
And it's working fine, except the file size. It return EMPTY.
Do you have any idea?
Code:
<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?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 1 month 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
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.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.