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:
    http://www.surreyforum.co.uk/forums/surrey-forums-surrey-discussions/

    (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:


    "ad_forum_view_above_node_list"
    "node_forum_level_2_before_lastpost"
    "forum_view_pagenav_before"
    "ad_forum_view_above_thread_list"
    "forum_view_threads_before"
    "thread_list_stickies"
    "ad_thread_list_below_stickies"
    "thread_list_item_icon_key"
    "thread_list_threads"
    "thread_list_options"
    "page_container_head"
    "moderator_bar"
    "page_container_content_top"
    "ad_above_top_breadcrumb"
    "page_container_breadcrumb_top"
    "page_container_notices"
    "page_container_content_title_bar"
    "ad_above_content"
    "ad_below_content"
    "page_container_breadcrumb_bottom"
    "ad_below_bottom_breadcrumb"
    "ad_header"
    "header_logo"
    "navigation_tabs_forums"
    "navigation_tabs_members"
    "navigation_tabs_help"
    "navigation_visitor_tabs_start"
    "navigation_visitor_tab_links1"
    "navigation_visitor_tab_links2"
    "navigation_visitor_tabs_middle"
    "navigation_visitor_tabs_end"
    "quick_search"
    "header"
    "footer_links"
    "footer_links_legal"
    "footer"
    "page_container_js_body"
    "body"

    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

    gah...

    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)

    http://www.surreyforum.co.uk/forums/surrey-forums-surrey-discussions/

    => 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