1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RM 1.2 Hiding the Rating Panel.

Discussion in 'Resource Manager Support' started by max_d, Jul 18, 2016.

  1. max_d

    max_d New Member

    I’m not sure what it’s called, but is there a way to hide the side panel that displays the rating and update?

    Thank you.
  2. Amaury

    Amaury Well-Known Member


    .resourceListItem .resourceStats { display: none; }
    max_d likes this.
  3. max_d

    max_d New Member

    Thank you. I really appreciate your help.

    Where can I find this line of code? Is it somewhere in the templates?
  4. wang

    wang Well-Known Member

    You must copy that code and paste it to your EXTRA.css template.
    max_d likes this.
  5. max_d

    max_d New Member

    Thank you for taking the trouble to help me.
    I did like you asked, but the side panel is still visible.
  6. wang

    wang Well-Known Member

    No problem at all sir.

    I do not have the RM installed to be able to test this myself, but after taking a look at its xml file, I think that you can remove that part by either removing or commenting out this bit of code from the resource_list_item template.

    <div class="listBlock resourceStats">
            <div class="listBlockInner">
                <xen:include template="rating">
                    <xen:set var="$rating">{$resource.rating_avg}</xen:set>
                    <xen:set var="$hint">{xen:if '{$resource.rating_count} == 1', {xen:phrase rm_1_rating}, {xen:phrase rm_x_ratings, 'count={$resource.rating_count}'}}</xen:set>
                <div class="pairsJustified">
                    <xen:if is="!{$resource.is_fileless}"><dl class="resourceDownloads"><dt>{xen:phrase downloads}:</dt> <dd>{xen:number $resource.download_count}</dd></dl></xen:if>
                    <dl class="resourceUpdated"><dt>{xen:phrase updated}:</dt> <dd><a href="{xen:link resources/updates, $resource}" class="concealed"><xen:datetime time="{$resource.last_update}" /></a></dd></dl>
    max_d likes this.
  7. max_d

    max_d New Member

    That worked perfectly! :)

    Thank you very much.
    wang likes this.
  8. wang

    wang Well-Known Member

    You are welcome sir :)

Share This Page