Yin 0 Posted October 6, 2019 Share Posted October 6, 2019 (edited) Hello! I'm trying to move "Start new topic" and "Mark forum as read" buttons to the ipsButtonBar element, however the problem is that the templates that generates those buttons require "$forum" as the parameter while the template that generates the topics table and such doesn't have that variable. I imagine I'd have to do some engine manipulations but overall I'm quite stuck. Help is very much appreciated! Desired result: Edited October 6, 2019 by Yin Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted October 6, 2019 Share Posted October 6, 2019 you have to do this in the admin to move the start topic look for this in the index <a class="ipsButton ipsButton_medium ipsButton_important" href="{url="app=forums&module=forums&controller=forums&do=add" seoTemplate="topic_non_forum_add_button"}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="select_forum"}'>{lang="start_new_topic"}</a> when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
Yin 0 Posted October 6, 2019 Author Share Posted October 6, 2019 (edited) 49 minutes ago, mr-pimpen said: you have to do this in the admin to move the start topic look for this in the index <a class="ipsButton ipsButton_medium ipsButton_important" href="{url="app=forums&module=forums&controller=forums&do=add" seoTemplate="topic_non_forum_add_button"}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="select_forum"}'>{lang="start_new_topic"}</a> <a class="ipsButton ipsButton_medium ipsButton_important" href="{url="app=forums&module=forums&controller=forums&do=add" seoTemplate="topic_non_forum_add_button"}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="select_forum"}'>{lang="start_new_topic"}</a> Oh sorry, I intend to do that inside forums, not on index. Buttons inside forums seem to be rendered inside "forumTable"! Edited October 6, 2019 by Yin Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted October 6, 2019 Share Posted October 6, 2019 if you want to remove the botton from the forum view it would be in forumbotton and look for this <a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="{$forum->url()->setQueryString( 'do', 'add' )}" title='{lang="start_new_topic_desc"}'>{lang="start_new_topic"}</a> that will remove it when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
Recommended Posts