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

Change amount of featured resources?

Discussion in 'Resource Manager Support' started by Xyphien, Dec 9, 2015.

  1. Xyphien

    Xyphien Active Member

    When I feature content on my resources section it only displays 2. Is there any way to increase the amount to three?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The limit is 6 but if only 2 can fit on a single row, that's all that will show - the rest will be hidden.
     
  3. Xyphien

    Xyphien Active Member

    Is there a way to change the size slightly, as there is enough space for a third one, but it only displays 2.
    Untitled.png
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Changing the width for the featured resource to 298 px seems to work.

    You can use .featuredResourceList .featuredResource in EXTRA.css for that.
     
  5. Xyphien

    Xyphien Active Member

    @Brogan

    .featuredResourceList
    {
    width: 298px;
    }

    Has actually made it worse:

    Untitled.png

    Also,the .featuredResource didn't do anything.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Search for it in the original CSS template and change it there.
     
  7. Mike

    Mike XenForo Developer Staff Member

    He gave an entire selector to use -- what you applied was different (only partial), which is why it didn't work as expected.
     
  8. Xyphien

    Xyphien Active Member

    so, what do I have to enter to get it to work?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

  10. Xyphien

    Xyphien Active Member

    To do the entire sector do I do this:
    .featuredResourceList
    {
    width: 298px;
    }
    .featuredResource
    {
    width: 298px;
    }


    or this?
    .featuredResource
    .featuredResourceList
    {
    width: 298px;
    }


    I'm a noob when it comes to stuff like this... so, I'm really unsure what I'm doing.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    The selector is exactly as a I posted it - .featuredResourceList .featuredResource
     
  12. Xyphien

    Xyphien Active Member

    So I simply put that exact thing in Extra.css and it magically works? Like I said, I have little to no idea what I'm doing.
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

    I recommend editing the original CSS template instead then.
     
  14. Xyphien

    Xyphien Active Member

    idk where the original css is... and that link you sent me just made me even more confused...

    I also tried:
    .featuredResourceList .featuredResource
    {
    width: 298;
    }
    and it still doesn't work, so doing the original css I guess is the only way to do it, but Idk where that is.
     
  15. Brogan

    Brogan XenForo Moderator Staff Member

    Use the template search function.

    The guide I linked you to is extremely detailed.
    I would be surprised if you can't find it following that.
     
  16. Xyphien

    Xyphien Active Member

    Template:
    resource_featured_list
    Code:
    <xen:require css="resource_list.css" />
    
    <ol class="featuredResourceList">
    <xen:foreach loop="$featuredResources" value="$resource">
        <li class="featuredResource">
            <div class="resourceImage">
                <xen:if is="{$xenOptions.resourceAllowIcons}">
                    <a href="{xen:link resources, $resource}" class="resourceIcon"><img src="{xen:helper resourceiconurl, $resource}" alt="" /></a>
                <xen:else />
                    <xen:avatar user="$resource" size="m" img="true" />
                </xen:if>
            </div>
            <div class="resourceInfo">
                <h3 class="title"><a href="{xen:link resources, $resource}">{xen:helper resourcePrefix, $resource}{$resource.title}</a></h3>
                <div class="tagLine muted">{$resource.tag_line}</div>
                <div class="details muted"><xen:username user="{$resource}" />,
                    <a href="{xen:link resources, $resource}" class="faint"><xen:datetime time="{$resource.resource_date}" /></a>
                </div>
            </div>
        </li>
    </xen:foreach>
    </ol>
    
    resource_featured
    Code:
    <xen:title>{xen:phrase featured_resources}</xen:title>
    
    <xen:container var="$searchBar.resourceUpdate"><xen:include template="search_bar_resource" /></xen:container>
    
    <xen:require css="resource_list.css" />
    
    <div class="section">
        <form action="{xen:link resources/inline-mod/switch}" method="post"
            class="InlineModForm"
            data-cookieName="resources"
            data-controls="#InlineModControls"
            data-imodOptions="#ModerationSelect option">
    
            <ol class="resourceList">
                <xen:set var="{$showCategoryTitle}">1</xen:set>
                <xen:foreach loop="$resources" value="$resource">
                    <xen:include template="resource_list_item" />
                </xen:foreach>
            </ol>
               
            <div class="pageNavLinkGroup">
                <xen:if is="{$inlineModOptions}"><div class="linkGroup InlineMod SelectionCountContainer"></div></xen:if>
                <div class="linkGroup"{xen:if '!{$ignoredNames}', ' style="display: none"'}><a href="javascript:" class="muted jsOnly DisplayIgnoredContent Tooltip" title="{xen:phrase show_hidden_content_by_x, "names={xen:helper implode, $ignoredNames, ', '}"}">{xen:phrase show_ignored_content}</a></div>
            </div>
       
            <xen:if is="{$inlineModOptions}">
                <xen:include template="inline_mod_controls_resource" />
            </xen:if>
        </form>
    </div>
    
    I see no width section to edit?
     
  17. Martok

    Martok Well-Known Member

    I don't think you've actually search the templates, like this:

    upload_2015-12-9_16-25-44.png
     
  18. Xyphien

    Xyphien Active Member

    Alright... I finally fixed it XD Thanks! This can be locked now.
     
  19. Thunderfall

    Thunderfall Member

    If the number of featured resources is at 6, does it mean need to unfeature some files before new ones can be featured?
     
  20. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page