UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Get image source in archive list

Zeosing · ·
6:26 PM Thursday, 07 August 2014
None
We created a source in the back-end of easy blog, now we only need to call the source in the blog.archive.list.php file.

Since the code :
<?php echo $row->getImage()->getSource('archive');?>


Doesn´t works, maybe we need to call a helper.

The code in the file thats produce the output list is:

<?php if( $data ){ ?>
<?php foreach ( $data as $row ) { ?>
<li id="entry-<?php echo $row->id; ?>" class="post-wrapper<?php echo !empty( $row->source ) ? ' micro-' . $row->source : ' micro-post';?>">
<time datetime="<?php echo $this->formatDate( '%Y-%m-%d' , $row->created ); ?>">
<?php echo $this->formatDate( $system->config->get('layout_dateformat') , $row->created ); ?>
</time>
<img class="m-archive-image" data-src="<?php echo $row->getImage()->getSource('archive');?>" alt="<?php echo $row->title;?>" />
<a href="/<?php echo EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id='.$row->id); ?>"><?php echo $row->title; ?></a>
</li>
<?php } ?>
<?php } else { ?>
<li>
<div class="eblog-message info mtm"><?php echo $emptyPostMsg;?></div>
</li>
<?php } ?>
</ul>


Note: the data-img is for asyc load images, nothing more.

As always thanks for all.
The replies under this section are restricted to logged in users or users with an active subscription with us