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

RM 1.0 How do I remove the author and creation time from the resource index and category view?

Discussion in 'Resource Manager Support' started by Alfa1, Mar 27, 2013.

  1. Alfa1

    Alfa1 Well-Known Member

    Does anyone know:

    1. How do I remove the author and creation time from the resource index and category view?
    2. How do I remove the author name from the 'top resources' block in the sidebar?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    This would have to be done with template edits...

    EDIT:

    To remove author and create time from both areas, find this code in resource_list_item:
    Code:
    			<div class="resourceDetails muted"><xen:username user="{$resource}" />,
    				<a href="{xen:link resources, $resource}" class="faint"><xen:datetime time="{$resource.resource_date}" /></a><xen:comment>
    				</xen:comment><xen:if is="{$showCategoryTitle}">, <a href="{xen:link resources/categories, $resource}">{$resource.category_title}</a></xen:if>
    			</div>
    Replace with:

    Code:
    			<div class="resourceDetails muted"><xen:comment>
    				</xen:comment><xen:if is="{$showCategoryTitle}">, <a href="{xen:link resources/categories, $resource}">{$resource.category_title}</a></xen:if>
    			</div>
     
    Alfa1 and Brogan like this.
  3. Alfa1

    Alfa1 Well-Known Member

    Yes, I like how easy this is in XF, but I still need to get the hang of it. I could not find the appropriate templates yet.
    Hopefully this can be done with an addon later on.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Sorry I always intended to tell you, I edited my post... oh the sidebar block...

    EDIT:

    resource_list_mini template

    Find and remove this line:

    Code:
    <xen:username user="$resource" rich="true" class="username" />
     
    Alfa1 likes this.
  5. Alfa1

    Alfa1 Well-Known Member

    Weird. I cant find resource_list_mini
    Even searching templates for that line yields no result.
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    It's definitely there:

    [​IMG]
     
  7. Alfa1

    Alfa1 Well-Known Member

    Yes, indeed. I needed to clear some filter that I was not aware of. Thanks.
     

Share This Page