Jump to content

Moving "Start new topic" and "Mark forum..." to ipsButtonBar


Yin

Recommended Posts

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:

KxTXktas.png

Edited by Yin
Link to comment
Share on other sites

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

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 by Yin
Link to comment
Share on other sites

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

bottons.thumb.png.b8645495b223d2dd0762653591f9e07a.png

botton2.thumb.png.a2567644bbc1776f7b9caa50d0f42b2b.png

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...