XF 2.1 How to import forum categories into a sidebar?

akhan

Active member
Is it possible to put forum categories in a sidebar as in XFMG and XFRM?
Classic forum view will be changed. It will be less complicated for users.
The remaining part can be filled with new forum posts, new images and new resources.
This way it will look more like a home page.

189813
 
You'd need an add-on to automatically do it, not sure if one exists.

You can do a basic HTML widget though:

Code:
<ol class="categoryList is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 1
            </a>
        </div>
        <ol class="categoryList is-active" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

<ol class="categoryList is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 2
            </a>
        </div>
        <ol class="categoryList is-active" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

Result was:
190033

or:

Code:
<ol class="categoryList toggleTarget is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a class="categoryList-toggler" data-xf-click="toggle" data-target="< :up :next" role="button" tabindex="0" aria-label="Toggle expanded"></a>
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 1
            </a>
        </div>
        <ol class="categoryList toggleTarget" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

<ol class="categoryList toggleTarget is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a class="categoryList-toggler" data-xf-click="toggle" data-target="< :up :next" role="button" tabindex="0" aria-label="Toggle expanded"></a>
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 2
            </a>
        </div>
        <ol class="categoryList toggleTarget" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

190034
 
You'd need an add-on to automatically do it, not sure if one exists.

You can do a basic HTML widget though:

Code:
<ol class="categoryList is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 1
            </a>
        </div>
        <ol class="categoryList is-active" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

<ol class="categoryList is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 2
            </a>
        </div>
        <ol class="categoryList is-active" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

Result was:
View attachment 190033

or:

Code:
<ol class="categoryList toggleTarget is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a class="categoryList-toggler" data-xf-click="toggle" data-target="< :up :next" role="button" tabindex="0" aria-label="Toggle expanded"></a>
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 1
            </a>
        </div>
        <ol class="categoryList toggleTarget" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

<ol class="categoryList toggleTarget is-active">
    <li class="categoryList-item">
        <div class="categoryList-itemRow">
            <a class="categoryList-toggler" data-xf-click="toggle" data-target="< :up :next" role="button" tabindex="0" aria-label="Toggle expanded"></a>
            <a href="CATEGORYLINKHERE" class="categoryList-link">
                Category 2
            </a>
        </div>
        <ol class="categoryList toggleTarget" tabindex="-1" style="">
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #1
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">

                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #2
                    </a>
                </div>

            </li>
            <li class="categoryList-item">
                <div class="categoryList-itemRow">
                    <a href="NODELINKHERE" class="categoryList-link">
                        Node #3
                    </a>
            </li>
        </ol>
    </li>
</ol>

View attachment 190034
@Russ
Thanks for help.this is useful to me
How can we show only in a category that we have determined?
 
Back
Top Bottom