sobrenome Posted July 18, 2015 Share Posted July 18, 2015 In the categoryRow template, the default template shows the last poster (comments) of a database record: {{if $lastPost}} <div class="ipsPhotoPanel ipsPhotoPanel_mini"> {template="userPhoto" app="core" group="global" params="$lastPost['author'], 'mini'"} <div> <ul class="ipsList_reset"> <li><a href="{$lastPost['record_url']}" class='ipsType_break ipsContained' title='{$lastPost['record_title']}'>{truncate="$lastPost['record_title']" length="65"}</a></li> <li>{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</li> <li data-short="1 dy" class="ipsType_light"><a href='{$lastPost['record_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}' class='ipsType_blendLinks'>{datetime="$lastPost['date']"}</a></li> </ul> </div> </div> {{else}} <ul class="ipsList_reset"> <li class='ipsType_light ipsResponsive_showDesktop'>{lang="content_categories_index_no_records" sprintf="\IPS\cms\Databases::load( $category->database_id )->recordWord()"}</li> </ul> {{endif}}Instead of last poster, I would like to show the record author.How should be the code?Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.