Change amount of featured resources?

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?
 

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.
 

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.
 

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.
 

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.
 

Brogan

XenForo moderator
Staff member
The selector is exactly as a I posted it - .featuredResourceList .featuredResource
 

Xyphien

Active member
I recommend editing the original CSS template instead then.
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.
 

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.
 

Xyphien

Active 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.
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?
 
Top