Yeah definitely possible, currently the component does:
if (this.currentUser.moderator) {
parseTabSettings(settings.moderator_only_tab_links);
return items;
}
…swap out this.currentUser.moderator to check for a group membership… and then settings.moderator_only_tab_links would be swapped out for the specific links for that group.
I can look into adding a setting that accepts various group names and links when I get a chance.
Thank you for the component. It is very helpful. A minor request - when I hover on the newly created tab, there is no description and there is no place to add a description.
You’re not missing something, there was no way to add a description. I’ve just added the ability to add one, so if you update the component you should see the option at the bottom of the component’s settings.
Not to overload the requests, but Don’s request got me thinking about other enhancements. If it could, for example, position the custom tab icon to the rightmost, change the color of the icon and the tab’s background, with blank target links to my sister sites, it could replace my current horizontal header links… I mention different color of icon & background because that would help distinguish the menu separately from the current site.
Loved this component, but it’s not compatible with the setup of the new user-menu I guess? Are there plans for a similar component to customize the new menu?
Some ideas have come up… maybe it’s something an admin or even a user can customize out of the box without a component, but we’re still experimenting with the initial version and some other concepts before seriously considering how that would work.
So once we start making the new user menu the default, it might make sense to build a new component if people are missing this functionality. This is also something that might make more sense as a custom sidebar section rather than a user menu tab?
Actually, I’d find it most helpful if there will be similar options to customize both (through a theme component or on the backend) So as an admin I could remove or add sections from either and items will not be repeated on the other component.
E.g. I could like to set up a reduced menu (but with admin tab) on some communities:
Thanks for this cool feature.
I’ve been trying to add a new icon, but it seems I’m missing something.
It works with star and baby, but not woth font awesome icons
It looks like that icon was renamed shop in version 6, but it did exist in version 5 with a different name: store-alt. So if you update additional icons and custom tab icon to use store-alt it should work!
I downloaded this theme so I could edit the user profile dropdown menu. Problem is, I don’t know how to commit the changes. It only has a preview option at the bottom and nowhere to save. I tried asking for help on the theme post but my post was removed for some reason. Any help would be greatly appreciated!
I followed the instructions and made my new menu item like so:
But then there is nowhere to commit/save the changes! Am I missing something about the way themes work? Do I have to edit the repository code itself? Sorry for being dumb, I am very new at this.
GitHub 링크는 Discourse 저장소로 리디렉션되며, all-the-themes 저장소의 official.txt에 등재되어 있습니다. OP(첫 게시물)의 링크를 업데이트할 수 있을까요? 그렇게 하면 해당 저장소의 update_from_meta 스크립트가 이 컴포넌트를 공식으로 인식할 수 있으며, 서드파티 파일에 추가하려 하지 않을 것입니다. 이 컴포넌트는 이전 업데이트 시 실수로 추가된 후 12월에 third-party.txt에서 제거되었습니다. 저장소 URL을 변경하면 이러한 일이 다시 발생하는 것을 방지할 수 있습니다.
또한, official 태그와 공식 컴포넌트의 전형적인 요소를 갖춘 첫 게시물이 있으면 좋겠습니다.