Forum Discussion
HI bryanpollack ,
I have done a similar thing , where I had to bring the the standard dropdown option of board page , withing a custom component.
Here it the sample code .
<div id="forum-title-wrapper">
<h1 class="forum-title">${boardTitle}</h1>
<@component id="menu-bar"/>
</div>
I later did a bit of styling to position the dropdown . You might have to be mindful of the page context where you are including the standard menu bar component. (It is usually better and safer if the standard component already exists in the page ,and we are just re-positioning it)
Hope that helps.
Thanks,
Sam
- samudhraa11 years agoExpert
Hi bryanpollack ,
I don't think the dropdown option is available as a separate standard component in Forum Topic Page , its a part of the message-list component.
If you want to use the dropdown option inside a custom component in that page , a work around would be to manipulate it using jQuery. Here is a sample code that I have used.
To move the dropdown option inside my custom component.
jQuery('#customcomponent').append(jQuery('.lia-message-options'));
To copy the dropdown option to custom component.
jQuery( ".lia-message-options" ).clone().appendTo( "#customcomponent" );
Hope that helps.
Thanks,
Sam
- bryanpollack11 years agoAce
The only way I could get that to work would be if I can get the message-list view to display posts the same as my custom one. I'm using the call "/threads/id/${threadId}/messages/threaded?restapi.format_detail=full_list_element&page_size=25" to get my data and I'm displaying it in the same order as it comes back. Is there any way to get message-list to display the posts in the "threaded" view? Thanks!
- samudhraa11 years agoExpertJust to confirm my understanding , you have done the whole thread list view of messages as a custom component. Now you would like to display options dropdown , for each message. Is that correct ?
Out of curiosity , Is there a specific reason you created the entire thread view as a custom component ?
Thanks.
Related Content
- 5 years ago