# Plugin Outlet Locations

**URL:** <https://meta.discourse.org/t/plugin-outlet-locations/29589>\
**Category:** Plugin\
**Tags:** deprecated\
**Created:** [2015 年6 月 3 日 08:30 UTC](https://meta.discourse.org/t/plugin-outlet-locations/29589 "2015-06-03T08:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
发布日期： [2015 年6 月 3 日 08:30 UTC](https://meta.discourse.org/t/plugin-outlet-locations/29589/1 "2015-06-03T08:30:29Z")

</div>

I’ve still got a lot to learn, and this is a very simple plugin.

But it is my hope that it will prove useful for others wanting to get into Discourse plugin development

Any questions or suggestions are more than welcome  
(other than criticizing my poor design skills that is, I _know_ that 😏)

[https://github.com/Mittineague/discourse-plugin-outlet-locations.git](https://github.com/Mittineague/discourse-plugin-outlet-locations.git)

# discourse-plugin-outlet-locations

This plugin allows developers to easily see were **plugin-outlet locations** are inserted into hbs templates.  
True, plugin-outlet locations may be used for purposes other than adding visual content, this plugin is only a starting point.

## Things that may be of interest

admin-menu  
In addition to showing where the plugin-outlet is, it shows a way to allow all staff to see the additional tab, or restrict it to Admins only.

site-map-links  
Shows a way to add a text input in the ACP Settings page that is used by the plugin.

topic-admin-menu-buttons  
Shows a way to use the client.en.yml file to add custom text

## Warnings

If you are developing your own plugin, please note:  
The plugin.rb file **must** have both the name: and version: comments or the plugin **will break** the Admin Plugins page.  
yml files are **very sensitive** to correct indentation or the **entire app will fail** , please validate your yml files.

## Tips

If you are developing your own plugin, please note:  
Although not necessary, having Admin Settings toggles are a courtesy to others so they won’t need to uninstalll the plugin to deactivate it.  
To have a link to a plugins “home” page in the Admin Plugins there must be a url: comment in the plugin.rb file.  
Giving template files the hbs extension, (and JavaScript files the es6 extension), allow Discourse to do “magic”

---

_[View the full topic](https://meta.discourse.org/t/plugin-outlet-locations/29589)._
