# Insert a glimmer component after first post

**URL:** https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282
**Category:** Development
**Created:** [April 10, 2024, 6:19pm UTC](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282 "2024-04-10T18:19:56Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 10, 2024, 6:19pm UTC](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282/1 "2024-04-10T18:19:56Z")

</div>

I’ve got a glimmer component. It’s working. But I need it to go after the first post in a topic. There’s no plugin outlet there.

I did figure out how to insert some text in the `innerHTML` of the `<article>` tag, and that puts that text where I want, but there doesn’t seem to be a way to do that with a component.

Am I missing something?

I looked at how the adplugin inserts ads between posts, but I couldn’t quite make sense of it.

```plaintext
export default {
  name: "initialize-ad-plugin",
  initialize(container) {
    registerWidgetShim(
      "after-post-ad",
      "div.widget-connector",
      hbs`<PostBottomAd @model={{@data}} />`
    );

    withPluginApi("0.1", (api) => {
      api.decorateWidget("post:after", (helper) => {
        return helper.attach("after-post-ad", helper.widget.model);
      });
    });

....

```

---

_[View the full topic](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282)._
