Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Gauravk Posted October 31, 2015 Posted October 31, 2015 We are using IP Content for having a car business listing and on landing page here: https://carnity.com/business_listing/ we wish to add the star rating in every business listing row, is it possible in below featured record -> entry -> code...? <article class='cCmsCategoryFeaturedEntry {{if $record->hidden()}}ipsModerated{{endif}}'> <header class='ipsPhotoPanel ipsPhotoPanel_notPhone ipsPhotoPanel_small ipsSpacer_bottom'> <!--{template="userPhoto" app="core" params="$record->author()" group="global"} <div> --> <h2 class='ipsType_pageTitle'> {{if $record->prefix()}} {template="prefix" group="global" app="core" params="$record->prefix( TRUE ), $record->prefix()"} {{endif}} <a href="{$record->url()}" title="{lang="read_more_about" sprintf="$record->_title"}"> {{if $record->unread()}} <span class='ipsItemStatus' data-ipsTooltip title="{lang="cms_unread_record"}"><i class="fa fa-circle"></i></span> {{endif}} {wordbreak="$record->_title"} </a> {{if $record->mapped('pinned') || $record->mapped('featured') || $record->hidden() === -1 || $record->hidden() === 1}} {{if $record->hidden() === -1}} <span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{$record->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span> {{elseif $record->hidden() === 1}} <span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span> {{endif}} {{if $record->mapped('pinned')}} <span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span> {{endif}} {{if $record->mapped('featured')}} <span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span> {{endif}} {{endif}} </h2> <!--<p class='ipsType_light ipsType_reset'> {lang="cms_byline" htmlsprintf="$record->author()->link(), $record->container()->url(), $record->container()->_title"}{datetime="$record->record_publish_date"} </p> </div>--> </header> {{if count( $record->customFieldsForDisplay('listing') )}} <div class='ipsDataItem_meta'> {{foreach $record->customFieldsForDisplay('listing') as $fieldId => $fieldValue}} {{if $fieldValue}} {$fieldValue|raw} {{endif}} {{endforeach}} </div> {{endif}} <section class='ipsType_normal ipsType_richText ipsType_break ipsSpacer_both' data-ipsTruncate data-ipsTruncate-size='2 lines' data-ipsTruncate-type='remove'> {{if $record->record_image}} <div class="cCmsRecord_image"> <img class="ipsImage" src="{file="$record->record_image" extension="cms_Records"}"> </div> {{endif}} {$record->truncated()|raw} </section> {{if count( $record->tags() )}} {template="tags" group="global" app="core" params="$record->tags()"} {{endif}} <ul class='ipsList_inline'> <li><strong><a href='{$record->url()}' title="{lang="read_more_about" sprintf="$record->name"}">{lang="read_more"}</a></strong></li> {{if $record::database()->options['reviews']}} <li>{template="rating" app="core" params="'small', $record->averageReviewRating(), \IPS\Settings::i()->reviews_rating_out_of" group="global"}</li> {{endif}} <li><a href='{$record->url()}#comments' title='{lang="view_comments"}'><i class='fa fa-comment'></i> {lang="num_comments" pluralize="$record->record_comments"}</a></li> <li class='ipsType_light'>{lang="num_views_with_number" pluralize="$record->record_views"}</li> </ul> </article>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.