Skip to main content
Topic: Moving Sub Boards to Bottom of Page (Read 2212 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Moving Sub Boards to Bottom of Page

How can I modify the default template so that on the index page of a board that has sub-boards, the list of sub-boards are displayed near the bottom of the page instead of near the top?

Re: Moving Sub Boards to Bottom of Page

Reply #1

You mean not listing the sub board with the parent board ????? 

Re: Moving Sub Boards to Bottom of Page

Reply #2

I believe he means having the sub boards listed under the current topic, whereas now it's on the top. 

Re: Moving Sub Boards to Bottom of Page

Reply #3

Thanks you all for chipping in.

Let me try and clarify using this link to the Localization board of this forum. Please visit the link.

https://www.elkarte.net/community/index.php?board=14.0

This board "Localization" has two child boards: "Download Language pack" and "Transifex Translation" which you can see listed near the top of the page under the "Sub Boards" section.

Below this you have a list of posts for the root Localization board.

What I want is for that section "Sub Boards" to be shown after the list of posts on the page (after the last section that contains icons for Locked topic, pinned topic etc).

Not before/above it as it is right now.

I hope my question is clearer?

Re: Moving Sub Boards to Bottom of Page

Reply #4

That could be difficult since after threads could mean after few pages of threads, if they are a lot.

Re: Moving Sub Boards to Bottom of Page

Reply #5

Quote from: ahrasis – That could be difficult since after threads could mean after few pages of threads, if they are a lot.
What I really mean is after the threads on that very first page

Re: Moving Sub Boards to Bottom of Page

Reply #6

That what I said difficult.

Re: Moving Sub Boards to Bottom of Page

Reply #7

hmmm really?  i hope there is someone who will help out
Last Edit: January 01, 2021, 09:34:39 am by hitokiri

Re: Moving Sub Boards to Bottom of Page

Reply #8

Yeah, really, so good luck!

Re: Moving Sub Boards to Bottom of Page

Reply #9

You will need to edit MessageIndex.template.php

Change the name of function template_display_child_boards_above() to be function template_display_child_boards_below()

You may have to change that first line from <header class="category_header"> to <header class="category_header clear"> if when you do the above rename things may get crowded below.

Re: Moving Sub Boards to Bottom of Page

Reply #10

I guess I was wrong. It seems that in the controller file, the child board was already set to be on the front page only, so @Spuds suggestion should theoratically work.

Re: Moving Sub Boards to Bottom of Page

Reply #11

Quote from: Spuds – You will need to edit MessageIndex.template.php

Change the name of function template_display_child_boards_above() to be function template_display_child_boards_below()

You may have to change that first line from <header class="category_header"> to <header class="category_header clear"> if when you do the above rename things may get crowded below.

Worked perfectly. Thank you so so much for your help with my questions