XF 1.x Content below category sub-headings

Bradley Prout

Well-Known Member
I come across a very nice feature on a site and was wondering if it be possible if it was available to be implemented onto my forum ?

Picture attached below is what am asking to have. It's the sub category layout on the board.
 

Attachments

Russ

Pixel Exit Staff
It's pretty simple using using a custom xenbase template we provide. It'll take a little setup but essentially those are just random links they're linking too.

We added the template: xb_cat_helper to provide extra functionality in the node list. Open that up, if you were to post something like this:

Code:
<xen:if is="{$category.node_id} == 3">
<ul class="catSubLinks">
   <li><a href="#">Random Link #1</a></li>
   <li><a href="#">Random Link #2</a></li>
   <li><a href="#">Random Link #3</a></li>
</ul>
<xen:elseif is="{$category.node_id} == 1" />
<ul class="catSubLinks">
   <li><a href="#">Random Link #6</a></li>
   <li><a href="#">Random Link #7</a></li>
   <li><a href="#">Random Link #8</a></li>
</ul>
<xen:elseif is="{$category.node_id} == 8" />
<ul class="catSubLinks">
   <li><a href="#">Random Link #9</a></li>
   <li><a href="#">Random Link #10</a></li>
   <li><a href="#">Random Link #11</a></li>
</ul>
<xen:else />
</xen:if>
Then extra.css:
Code:
.catSubLinks li a
{
   display: block;
   padding: 5px 10px;
   text-align: center;
   border: 1px solid @xbSecondaryBorder;
   margin: 3px auto;
   background-color: @xbSecondaryContent;
   border-radius: @xb_borderradiuss;
}
Result would be:

Screenshot_1.png




Notice the: {$category.node_id} == 8, 1,3 ect... that represents the category ID itself.
 
Last edited:

bt012ss

Registered
Is it possible to change this thread title in something that we can find again later :)

Maybe Category Sublinks ore something else.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.