# Connector Classes and Actions

**URL:** <https://meta.discourse.org/t/connector-classes-and-actions/54813>\
**Category:** Development\
**Created:** [2016 年 12 月 27 日午前 5:24 UTC](https://meta.discourse.org/t/connector-classes-and-actions/54813 "2016-12-27T05:24:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![skoota](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skoota/32/65472_2.png) [@skoota](https://meta.discourse.org/u/skoota)\
**Post date:** [2016 年 12 月 28 日午後 9:08 UTC](https://meta.discourse.org/t/connector-classes-and-actions/54813/6 "2016-12-28T21:08:53Z")

</div>

Okay, thanks for the reply @eviltrout. Before going further into looking at changes to Discourse, is there any alternative way to achieve the same thing?

I was using the [discourse-basic-links](https://github.com/joebuhlig/discourse-basic-links) plugin as example code, since it inserted a “link url” field into the composer window. Looking at the source code, it managed to get the custom field data by reopening the `ComposerController` and overriding the `save()` action.

> <https://github.com/joebuhlig/discourse-basic-links/blob/master/assets/javascripts/discourse/pre-initializers/basic-links.js.es6#L68>

The field is inserted via a connector on the `composer-fields` plugin outlet, but all the logic is contained within the above pre-initializer class rather than a class connector (since the plugin was developed prior to class connectors being introduced).

Unfortunately the plugin doesn’t work with the latest Discourse from GitHub - so I am not holding my breath that this approach will work anymore!

---

_[View the full topic](https://meta.discourse.org/t/connector-classes-and-actions/54813)._
