1. 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 ?!

Discussion in 'Styling and Customization Questions' started by TBDragon, Jan 15, 2014.

  1. TBDragon

    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 ?


    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

    <xen:if is="{$forum.prefixCache}">
            <xen:require css="listPrefixes.css" />
        <div class="discussionListFilters secondaryContent" dir="LTR">
                <xen:foreach loop="$forum.prefixCache" value="$prefixes">
                    <xen:foreach loop="$prefixes" value="$prefixId">
                        <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 />

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

    and thanks
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Try using prefix_group_id.
    TBDragon likes this.
  3. TBDragon

    TBDragon Active Member

    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
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I don't know what you're trying to do exactly but have a look at the title_prefix_edit_options template.
    TBDragon likes this.
  5. katsulynx

    katsulynx Well-Known Member

    Sounds like he wants to limit the code above to not show all prefixes used but only to those out of one group that have been.
    TBDragon likes this.
  6. TBDragon

    TBDragon Active Member

    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

    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

    Group 2 << the name of the group
  7. katsulynx

    katsulynx Well-Known Member

    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.
    TBDragon likes this.
  8. TBDragon

    TBDragon Active Member

    ok ^_^ waiting u
  9. katsulynx

    katsulynx Well-Known Member

    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 likes this.
  10. TBDragon

    TBDragon Active Member

    Last edited: Jan 15, 2014
  11. katsulynx

    katsulynx Well-Known Member

    And then you added a custom widget with [bd] Widget Framework?

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

    TBDragon Active Member

    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
  13. jo8jo

    jo8jo Member

    @TBDragon did you figure out how to list the prefixes in a custom widget with [bd] widget framework? :)
  14. TBDragon

    TBDragon Active Member

    if u mean the way i want no i didnt , but for listing all prefixes r use in the node i already did that and work fine ^_^
  15. jo8jo

    jo8jo Member

    You want to share the code? :whistle::X3:
  16. TBDragon

    TBDragon Active Member

    my code already in the first post ^_^
    for the new code ofcorse i will share if some1 help me with that hhh i didnt find a solution so . !!

Share This Page