How to List All of the Plugin Outlets in Discourse

Here’s a quick script for finding all the current plugin outlets in Discourse forum software. There might be better ways, but after searching for a while I figured it would be quicker to write a script.

I cloned the latest version of the Discourse repo and then ran this quick command in that directory:

rg '\{\{plugin-outlet name=' -N -I --color never | sed -r 's/\s*\{\{plugin-outlet name="([-a-z]+)".*/\1/' | rg -v '!' | sort | uniq

Note: the command uses ripgrep instead of grep but grep should work too, if you give it the correct flags.

Here’s the list of plugin outlets in the current version of Discourse:

  1. about-after-admins
  2. about-after-description
  3. about-after-moderators
  4. above-footer
  5. above-main-container
  6. above-review-filters
  7. above-site-header
  8. above-static
  9. above-user-preferences
  10. above-user-profile
  11. admin-below-plugins-index
  12. admin-customize-themes-list-item
  13. admin-customize-themes-show-top
  14. admin-dashboard-bottom
  15. admin-dashboard-general-bottom
  16. admin-dashboard-general-top
  17. admin-dashboard-moderation-bottom
  18. admin-dashboard-moderation-top
  19. admin-dashboard-security-bottom
  20. admin-dashboard-security-top
  21. admin-dashboard-top
  22. admin-menu
  23. admin-user-details
  24. admin-users-list-icon
  25. admin-users-list-nav-after
  26. advanced-search-options-above
  27. advanced-search-options-below
  28. after-d-editor
  29. after-reviewable-flagged-post-body
  30. after-reviewable-post-user
  31. after-topic-footer-buttons
  32. after-topic-footer-main-buttons
  33. after-topic-list
  34. after-user-details
  35. after-user-info
  36. after-user-name
  37. before-backup-list
  38. before-composer-toggles
  39. before-create-topic-button
  40. before-group-container
  41. before-groups-index-container
  42. before-topic-list
  43. before-topic-progress
  44. below-badges-title
  45. below-categories-only
  46. below-footer
  47. below-site-header
  48. below-static
  49. bread-crumbs-right
  50. category-custom-security
  51. category-custom-settings
  52. category-email-in
  53. category-heading
  54. category-list-above-each-category
  55. category-navigation
  56. category-title-before
  57. composer-action-after
  58. composer-after-save-or-cancel
  59. composer-fields
  60. composer-fields-below
  61. composer-open
  62. create-account-after-modal-footer
  63. create-account-before-modal-body
  64. discovery-above
  65. discovery-below
  66. discovery-list-container-top
  67. downloader
  68. editor-preview
  69. edit-topic
  70. evil-trout
  71. full-page-search-below-search-info
  72. full-page-search-category
  73. group-activity-bottom
  74. group-details-after
  75. group-edit
  76. group-email-in
  77. group-index-box-after
  78. group-reports-nav-item
  79. groups-form-membership-below-automatic
  80. login-after-modal-footer
  81. login-before-modal-body
  82. post-revisions
  83. quote-button-after
  84. quote-share-buttons-after
  85. revision-user-details-after
  86. topic-above-footer-buttons
  87. topic-above-posts
  88. topic-above-post-stream
  89. topic-above-suggested
  90. topic-category
  91. topic-footer-main-buttons-before-create
  92. topic-title
  93. top-notices
  94. upload-actions
  95. user-card-after-metadata
  96. user-card-after-username
  97. user-card-avatar-flair
  98. user-card-before-badges
  99. user-card-location-and-website
  100. user-card-metadata
  101. user-card-post-names
  102. user-custom-controls
  103. user-custom-preferences
  104. user-location-and-website
  105. user-main-nav
  106. user-messages-nav
  107. user-post-names
  108. user-preferences-account
  109. user-preferences-apps
  110. user-preferences-categories
  111. user-preferences-desktop-notifications
  112. user-preferences-emails
  113. user-preferences-emails-pref-email-settings
  114. user-preferences-interface
  115. user-preferences-interface-top
  116. user-preferences-nav
  117. user-preferences-nav-under-interface
  118. user-preferences-notifications
  119. user-preferences-profile
  120. user-profile-avatar-flair
  121. user-profile-controls
  122. user-profile-primary
  123. user-profile-public-fields
  124. user-profile-secondary
  125. users-top
  126. user-stream-item-header
  127. user-summary-stat
  128. web-hook-fields

The list was generated in February, 2021. If you want a more current list of Discourse plugin outlets, clone the repo and use the command.

To learn how to use plugin outlets, see the Developer’s Guide to Discourse Themes and/or the Beginners Guide to Creating Discourse Plugins series.