Insert ads at any place

AI-generated summary

In a discussion regarding the Discourse Ad Plugin, user sevenmaxis asks if there is a way to place ads in custom locations beyond the fixed plugin outlet locations, as their client prefers a different layout. User neil suggests adding new outlets to the existing plugin rather than forking the codebase. sevenmaxis decides to attempt adding outlets themselves but encounters issues where the {{plugin-outlet}} helper does not render the expected HTML. neil points out a typo in the user’s post but notes that the code itself seems correct, warning that Ember might not catch component name typos. sevenmaxis confirms the typo was only in the forum post, not the code, and states that despite following the documentation in helpers/plugin-outlet.js.es6 exactly, the implementation still fails.

The Discourse Ad Plugin propose to place ads in fixed places on the site. My customer want to place these ads other places, to make advertising look nicer in his opinion. As far as I understood I can insert html elements only at Plugin Outlet Locations.

Is there any other possibility to place html elements at any desired place?

First option came to my mind is to fork the Discourse and place plugin outlet at desired places, also add features to Ad Plugin and deliver to customer all that as a solution.

Maybe it would make sense to add new outlets in those locations instead of forking. Where do they want ads? So far the ad plugin has been based on what people have been asking for, so there could be other good spots that can be supported.

I think I’ll try to add outlets by my self.
It seems that just adding line {{plugin-outltet 'name'}} is not actually adding correspondent html, is there a reference how to add plugin-outlet at custom place?

Be careful if that typo is in your code… :slight_smile:

Based on your first post, it sounds like you know how to add outlets. Do you have a typo? I don’t think ember will complain about typos in component names…

I have typo in this post :slight_smile: in code it’s ok.
I found documentation in helpers/plugin-outlet.js.es6 and put evil-trout (lines and files) exactly as it was in this docs, still no success.