Remove Downloads from resource templates

Gene Steinberg

Well-known member
How about this:

In Resource Manager, there are several columns listing Downloads: [number]

Since we also offer the same downloads via an RSS feed, the number will always be wrong.

How do I eliminate these lines in XF2?
 
Template xfrm_resource_list_macros remove:

HTML:
            <xf:if is="$resource.isDownloadable()">
                <dl class="pairs pairs--justified structItem-minor structItem-metaItem structItem-metaItem--downloads">
                    <dt>{{ phrase('xfrm_downloads') }}</dt>
                    <dd>{$resource.download_count|number}</dd>
                </dl>
            </xf:if>

Template xfrm_resource_view remove:

HTML:
                        <xf:if is="$resource.isDownloadable()">
                            <dl class="pairs pairs--justified">
                                <dt>{{ phrase('xfrm_downloads') }}</dt>
                                <dd>{$resource.download_count|number}</dd>
                            </dl>
                        </xf:if>
 
Template xfrm_resource_history remove:

HTML:
            <xf:if is="$hasDownload">
                        <xf:cell>{{ phrase('xfrm_downloads') }}</xf:cell>
                    </xf:if>

Also remove:

HTML:
                        <xf:if is="$hasDownload">
                            <xf:cell>
                                {{ $version.isDownloadable() ? $version.download_count|number : phrase('n_a') }}
                            </xf:cell>
                        </xf:if>
 
Top Bottom