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

XF 1.2 how to list a prefix group ?!

TBDragon

Active member
#1
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
 

TBDragon

Active member
#3
Try using prefix_group_id.
can u show me how ?
iam not that much with xenforo templates =(

----------------------------

what i wana view is like this

Group Name
--------------

prefix 11
prefix 12
prefix 13

Group Name 2
--------------

prefix 21
prefix 22
prefix 23
 

TBDragon

Active member
#6
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.png
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
 

katsulynx

Well-known member
#7
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.
 

katsulynx

Well-known member
#9
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?
 

TBDragon

Active member
#12
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