XF 1.2 how to list a prefix group ?!

TBDragon

Active member
i wana ask about listing prefix

in the admin panel
we create a group and put the prefix in that group

is it possible to list the prefix for each group in separate ?

like

group ( movies )
have many prefix ( movie1 , movie2 , movie3 )
group ( tvshows )
have also prefix ( tvshow1 , tvshow2 , tvshow3 , tvshow4 )

in my forum i use this code to list all prefix have been used in that forum

HTML:
<xen:if is="{$forum.prefixCache}">
        <xen:require css="listPrefixes.css" />
    <div class="discussionListFilters secondaryContent" dir="LTR">

            <tr>
            <xen:foreach loop="$forum.prefixCache" value="$prefixes">
                <xen:foreach loop="$prefixes" value="$prefixId">
                <tr>
                    <a href="{xen:link forums, $forum, 'prefix_id={$prefixId}'}" class="prefixLink"
                            title="{xen:phrase show_only_threads_prefixed_by_x, 'prefix={xen:helper threadPrefix, $prefixId, escaped, ''}'}">{xen:helper threadPrefix, $prefixId, html, ''}</a>
                <br />
                </tr>
                </xen:foreach>
            </xen:foreach>
            </tr>
    </div>
</xen:if>


so is it possible just to list prefix for group ( movies)


and thanks
 
here an example of what the code do its list all prefix for the node 1 in the sidebar by using the Widget Framework addon

upload_2014-1-15_20-25-48.webp
the prefix " KoD " in group 1
JpD and CiD are in group 2

so what i wana do exactly to be a result

Group 1 << the name of the group
----------
KoD

Group 2 << the name of the group
----------
JpD
CiD
 
So you simply want to add the group titles and split the showcase in groups? I may can have a look at your template in around 5 hours when I get back to a useable computer.
 
I've taken a quick glance at it and noticed I have no idea where you have done this template edit. Did you create the code above yourself or did you copy it from some resource/thread? If it is the latter, could you provide a link so I can may reproduce those steps to get to the point you're at by now, so I can proceed further?
 
And then you added a custom widget with [bd] Widget Framework?

Edit: Seems like the addon you've posted is breaking my Test Forum...

ya i add new widget depend on template
put the template name
make new template add the code ^_^ done


hmm i dono i just use it from old 1.1.4 then modife the template for my use
 
Top Bottom