wenkk Posted April 25, 2024 Share Posted April 25, 2024 Hey, anyone got a tutorial on how can I arrange my subforums on 3 columns? [IPS 4.7.x] Like this: Thank you so much! Link to comment Share on other sites More sharing options...
1 The Grim Reaper Posted May 3, 2024 Share Posted May 3, 2024 Hello, i'm sorry for this delayed response of mine. Search for this into your template forum - index - forum and replace this : {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{{if \IPS\forums\Topic::containerUnread( $subforum )}}<span class='ipsItemStatus ipsItemStatus_tiny {{if !\IPS\forums\Topic::containerUnread( $subforum ) && !$subforum->redirect_on}}ipsItemStatus_read{{endif}}'><i class="fa fa-circle"></i></span> {{endif}}{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} {{if $forum->description}} {template="richText" group="global" app="core" location="global" params="$forum->description, array('ipsDataItem_meta', 'ipsContained')"} {{endif}} With this : {{if $forum->description}} {template="richText" group="global" app="core" location="global" params="$forum->description, array('ipsDataItem_meta', 'ipsContained')"} {{endif}} {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} Add into your custom.css this : .ipsApp .cForumRow .ipsDataItem_subList { padding: 0 !important; background-image: none !important; display: grid; grid-template-columns: repeat(3, 33%); } .ipsApp .cForumRow .ipsDataItem_subList li:after { content: ''; font-family: "FontAwesome"; /* here you put what you want to appear before a subforum */ } .ipsApp .cForumRow .ipsDataItem_subList li.ipsDataItem_unread:after { content: ''; font-family: "FontAwesome"; /* here you put what you want to appear before an unread subforum */ } .ipsDataItem_subList li a:after { content: ''; } 2 Link to comment Share on other sites More sharing options...
0 The Grim Reaper Posted May 8, 2024 Share Posted May 8, 2024 The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
wenkk
Hey, anyone got a tutorial on how can I arrange my subforums on 3 columns? [IPS 4.7.x]
Like this:
Thank you so much!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts