# 移动端 Discourse 标签栏

**URL:** https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696
**Category:** Theme component
**Created:** [2017年十二月8日 18:05 UTC](https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696 "2017-12-08T18:05:34Z")
**Posts on this page:** 1
**Showing post:** 172

<div class="post-metadata">

### Author: ![Drew-ART](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Drew-ART](https://meta.discourse.org/u/Drew-ART)
#### Post date: [2025年二月6日 16:44 UTC](https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696/172 "2025-02-06T16:44:04Z")

</div>

如果我创建几个此插件的 fork 并重新安装它们，是否可以定义每个 fork 加载我网站上的哪些 URL？

例如

- ‘加载/排除 URL：/t/’
- ‘加载/排除 URL：/c/’
- ‘加载/排除 URL：/c/puppies’

目标是创建一个标签栏，为网站的 3 个不同区域更改图标和链接，引导用户执行我希望他们在每个区域采取的操作。

* * *

我想知道 Kanban 插件的“显示类别”功能是否可能有一些可以重新利用的代码来实现这一点。

`“显示‘面板’按钮应出现的类别列表。如果留空，则显示在所有位置。使用 @ 表示顶层视图。”`

或者，也许可以修改 `isHomepage` getter 来检查其他页面？

> [@Add custom content that only appears on your homepage](https://meta.discourse.org/t/add-custom-content-that-only-appears-on-your-homepage/131415):
>
> A very common situation you’ll find yourself in as a theme developer is the need to create content that only shows on the homepage of your community. You might add some HTML to the “After Header” section of your theme, which will then appear on every page. You can jump through some hoops in CSS to hide this everywhere except the homepage… but instead let’s use a Discourse theme to create a component with content that is only visible on your homepage. If you’re unfamiliar with Discourse themes …

---

_[View the full topic](https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696)._
