I want to highlight the option to subscribe to a post, thread, or board with a button (instead of having it hidden in the options menu). Does anyone already have code to do that? Thanks, Jon...
AdamN this was extremely helpful. I'm 1/2 way there - I created the custom component, added the OOTB component code, wrapped a little HTML around it and even added a couple of CSS styles. cjdinger refined it.. but we're missing one thing.
We want to add the Subsribe button for a board within the
"lia-menu-bar lia-menu-bar-top lia-component-menu-bar" class (vs. adding the button using a fixed position in CSS).
Hi Mathhew! I actually would still like that additional detail of being able to put a subscribe button in the line above the discussions as described. Glad you also have that same need.Lainie
We have a way to place items in the menu bar, but it's in an XML file that we don't expose a way to edit through Studio, so someone in our Professional Services group would need to add this for you. We hope to make it self service at some point in the future.The only way I can think of to do it without Services would be to insert it into the menu bar usingJavascript, although that could cause a slight delay before the subscription buttons show up.
Not to disagree with Doug, but I would suggest a differenty way. First, you can add to the menu but not the menu bar. Adding subscribe to the menu is unnecessary as it is already there. The menu bar is not editable by any means. Second, here is how I would acheive what you are looking for.
1) Add your new component directly above the menbar component. In this example, my custom component is called "custom-add-to-my-places"
2) Add css to float the custom component and the menu bar to the left. You may need to adjust the width of menu bar:
3) You now have the look of the two items living in the same line. In my case, I styled the subscription as a "favorites" heart to acheive an all icon look:
Ah yes. Sorry, I didn't read the thread closely enough and was confusing the menu bar with the drop-down menu. My mistake. Thanks for weighing in Kaela!