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

Node_List in node_category_level_1, I'd like two colums instead of one

Discussion in 'XenForo Development Discussions' started by tenants, May 15, 2012.

  1. tenants

    tenants Well-Known Member

    Actually, it's level_2 I'm looking at (the sub forums)

    For my forum, I have lots of subforums:

    (The list of subforms is too long here before you get to the content)

    I would like to make each of titles of the subforums 50% in width and float left (halve the length of the list)

    To do this, I thought I would be able to use Listeners_TemplateHooks but I havent figured out what hook to use yet, any ideas?

    I've splated out all the template hook names:


    I've tried most of the obvious... I hope there's a hook I can use (its not obvious from the templates)

    Am I chasing my tail, should I be looking somewhere else?
  2. tenants

    tenants Well-Known Member

    yes tenants, none of those hooks can be used for node_list or node_category_level_x


    looks like a simple thing to do in the mark up, just wish there was a hook here.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  4. tenants

    tenants Well-Known Member

    yeah, I see what Brogan was doing with the css, but it will work for top level and sublevel forum nodes, I just need this to work with subforum nodes
  5. tenants

    tenants Well-Known Member

    To get to the node_list template, I had to extend ControllerPublic_Forum and the point to a custom (cloned) forum_list template which then points to a custom node_list template... making headway, not really sure if this is the best way to do it (seems fiddley for a simple thing)
  6. tenants

    tenants Well-Known Member

    I eventaully did it using the above method (without needing to make changes to any core files or templates... and can be used as a plugin)


    => It wasn't a simple thing to do for a simple mark up change

    If anyone needs this, let me know
    (Note, to self, I've added it to the plug-in [SurreyForum] XenKingSide - Additional Sidebar Options)

    If anyone really needs this, I will modify the above plug-in so you can turn on/off the sidebars and make it more general, I haven't released the above yet (didn't think many would need left and right side bars)

Share This Page