# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=137

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 138

---

## [Customizing CSS via plugin](https://meta.discourse.org/t/customizing-css-via-plugin/54142)

<div class="topic-metadata">

**Author:** [@swohlever](https://meta.discourse.org/u/swohlever)\
**Replies:** 2\
**Last updated:** [December 12, 2016, 10:12pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142 "2016-12-12T22:12:23Z")

</div>

I’ve successfully applied custom CSS using the Customize-\>CSS/HTML UI, but I would rather package the styling changes with my plugin. I’ve seen examples of plugins using register\_asset in plugin.rb to add CSS. I created …

---

## [Conditionally rendering a plugin outlet](https://meta.discourse.org/t/conditionally-rendering-a-plugin-outlet/53838)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 4\
**Last updated:** [December 12, 2016, 7:15pm UTC](https://meta.discourse.org/t/conditionally-rendering-a-plugin-outlet/53838 "2016-12-12T19:15:30Z")

</div>

I would like to introduce a mechanism for conditionally rendering outlets, I think for the time being even an unbound solution will go a reasonable distance. The problem: I am looking at adding a “solutions” tab to the…

---

## [Why is RTL class user dependent instead of locale?](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077)

<div class="topic-metadata">

**Author:** [@ibnesayeed](https://meta.discourse.org/u/ibnesayeed)\
**Replies:** 10\
**Last updated:** [December 12, 2016, 12:01am UTC](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077 "2016-12-12T00:01:01Z")

</div>

Recently, I added support for Urdu language, which, like Arabic, Hebrew, and Persian, is an RTL (right-to-left) language. To make the software aware of it I added ur locale in rtl\_locales method of the RTL model class. …

---

## [Merge discourse-links-category into Discourse](https://meta.discourse.org/t/merge-discourse-links-category-into-discourse/51483)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Replies:** 17\
**Last updated:** [December 5, 2016, 9:42pm UTC](https://meta.discourse.org/t/merge-discourse-links-category-into-discourse/51483 "2016-12-05T21:42:24Z")

</div>

https://meta.discourse.org/t/links-category-for-discourse/43532 Links category is going to be a core feature. Links category offers the ability to post a link instead of text as well as displaying the link in the topic …

---

## [Android app account creation](https://meta.discourse.org/t/android-app-account-creation/54049)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 1\
**Last updated:** [December 10, 2016, 8:20pm UTC](https://meta.discourse.org/t/android-app-account-creation/54049 "2016-12-10T20:20:21Z")

</div>

How does the official android app do an account creation? Does it use a web interface or does it use the API or some other method? I tried finding the code in the github repo, but was not successful.

---

## [Logins with Google and Facebook](https://meta.discourse.org/t/logins-with-google-and-facebook/53763)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 5\
**Last updated:** [December 9, 2016, 6:46pm UTC](https://meta.discourse.org/t/logins-with-google-and-facebook/53763 "2016-12-09T18:46:37Z")

</div>

If I allow Google and Facebook logins, how are those users created in the Discourse server using API calls?

---

## [Decorate topic list with jquery?](https://meta.discourse.org/t/decorate-topic-list-with-jquery/53931)

<div class="topic-metadata">

**Author:** [@jgujgu](https://meta.discourse.org/u/jgujgu)\
**Replies:** 6\
**Last updated:** [December 8, 2016, 12:42am UTC](https://meta.discourse.org/t/decorate-topic-list-with-jquery/53931 "2016-12-08T00:42:12Z")

</div>

I understand that there is a way to decorate posts after cooking with api.decorateCooked(). Is there a similar method for decorating topic list items or the topic list?

---

## [Gigya SSO external script override help](https://meta.discourse.org/t/gigya-sso-external-script-override-help/53896)

<div class="topic-metadata">

**Author:** [@aedensixty](https://meta.discourse.org/u/aedensixty)\
**Replies:** 3\
**Last updated:** [December 7, 2016, 2:23am UTC](https://meta.discourse.org/t/gigya-sso-external-script-override-help/53896 "2016-12-07T02:23:54Z")

</div>

I am using gigya’s ‘registration as a service’ method which basically opens a javascript modal and processes through the modal. I am having a lot of trouble after the modal has opened although sign in on initial open wo…

---

## [Branded mobile app](https://meta.discourse.org/t/branded-mobile-app/53878)

<div class="topic-metadata">

**Author:** [@nommaz](https://meta.discourse.org/u/nommaz)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 11:19pm UTC](https://meta.discourse.org/t/branded-mobile-app/53878 "2016-12-06T23:19:38Z")

</div>

I am hosting a small non profit community board on digitalocean but planning to migrate to discourse standard hosting due to your cool new ios app. I really want to make the user experience as seemless as having a mobil…

---

## [Added route wants me to authenticate?](https://meta.discourse.org/t/added-route-wants-me-to-authenticate/53836)

<div class="topic-metadata">

**Author:** [@aedensixty](https://meta.discourse.org/u/aedensixty)\
**Replies:** 2\
**Last updated:** [December 6, 2016, 10:45pm UTC](https://meta.discourse.org/t/added-route-wants-me-to-authenticate/53836 "2016-12-06T22:45:59Z")

</div>

I added a route through a plugin in my plugin.rb post “/generate” =\> “discoursegen#generate” which is running fine however when I do an ajax call on it the route wants me to use an api key? How can I set the route to …

---

## [Can I copy the Discourse CLA for my own project?](https://meta.discourse.org/t/can-i-copy-the-discourse-cla-for-my-own-project/49327)

<div class="topic-metadata">

**Author:** [@GamePad64](https://meta.discourse.org/u/GamePad64)\
**Replies:** 5\
**Last updated:** [December 6, 2016, 4:55am UTC](https://meta.discourse.org/t/can-i-copy-the-discourse-cla-for-my-own-project/49327 "2016-12-06T04:55:49Z")

</div>

I have my very own GitHub project under the terms of General Public License version 3. I am willing to post it in App Store (Google Play, …) later, and I am concerned about the “GPL Trap”, that could prevent doing that. …

---

## [Discourse API Documentation Using RAML](https://meta.discourse.org/t/discourse-api-documentation-using-raml/53816)

<div class="topic-metadata">

**Author:** [@ibnesayeed](https://meta.discourse.org/u/ibnesayeed)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 12:09am UTC](https://meta.discourse.org/t/discourse-api-documentation-using-raml/53816 "2016-12-06T00:09:39Z")

</div>

I am proposing the Discourse API documentation using RESTful API Modeling Language (RAML). This would enable us to: programmatically interact with the API perform testing on various endpoints automatically generated in…

---

## [Issue using topic-list-tags plugin outlet](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716)

<div class="topic-metadata">

**Author:** [@swohlever](https://meta.discourse.org/u/swohlever)\
**Replies:** 3\
**Last updated:** [December 5, 2016, 5:28pm UTC](https://meta.discourse.org/t/issue-using-topic-list-tags-plugin-outlet/53716 "2016-12-05T17:28:37Z")

</div>

Hi. New Discourse dev here. I am trying to get a simple template test to work. I’ve created a basic \*,hbs file (just some text) and dropped it into plugins/myplugin/assets/javascripts/discourse/templates/connectors/topic…

---

## [What should password field be?](https://meta.discourse.org/t/what-should-password-field-be/53167)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 6\
**Last updated:** [December 4, 2016, 6:43am UTC](https://meta.discourse.org/t/what-should-password-field-be/53167 "2016-12-04T06:43:08Z")

</div>

When using the create user API call with Google Sign-In, what should the password field be when sending the POST command? The Google Sign-In doesn’t actually return a password, so what should be used?

---

## [Plugin markdown parsing in preview working, but not in post?](https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674)

<div class="topic-metadata">

**Author:** [@jgujgu](https://meta.discourse.org/u/jgujgu)\
**Replies:** 1\
**Last updated:** [December 3, 2016, 6:49pm UTC](https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674 "2016-12-03T18:49:27Z")

</div>

I have a quick question about how to get the markdown parser to parse in posts, “cooking” them. Currently, my implementation successfully cooks in a preview, but not in a post. I’ve mimicked the functionality present in d…

---

## [Rerender widget from modal](https://meta.discourse.org/t/rerender-widget-from-modal/53723)

<div class="topic-metadata">

**Author:** [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Replies:** 0\
**Last updated:** [December 2, 2016, 10:04pm UTC](https://meta.discourse.org/t/rerender-widget-from-modal/53723 "2016-12-02T22:04:01Z")

</div>

I’ve run into a bit of a problem I can’t work out while trying to implement an “Improve this translation” modal in the discourse-translator plugin. After I (successfully) submit the improved translation to the server, I…

---

## [Overwrite methods in Discourse.Utilities](https://meta.discourse.org/t/overwrite-methods-in-discourse-utilities/53408)

<div class="topic-metadata">

**Author:** [@leo.proctor](https://meta.discourse.org/u/leo.proctor)\
**Replies:** 6\
**Last updated:** [November 29, 2016, 5:52pm UTC](https://meta.discourse.org/t/overwrite-methods-in-discourse-utilities/53408 "2016-11-29T17:52:00Z")

</div>

I’m struggling with EmberJS for a while now. I need to override Discourse.Utilities.getUploadMarkdown in a plugin, but i’m not getting anywhere. How do you override export methods in Discourse.Utilities. any help plz?

---

## [List all uploads of a Post/Topic](https://meta.discourse.org/t/list-all-uploads-of-a-post-topic/53507)

<div class="topic-metadata">

**Author:** [@leo.proctor](https://meta.discourse.org/u/leo.proctor)\
**Replies:** 5\
**Last updated:** [November 29, 2016, 3:14am UTC](https://meta.discourse.org/t/list-all-uploads-of-a-post-topic/53507 "2016-11-29T03:14:54Z")

</div>

Is there any method defined that lists all the uploads of a post or tell us which post upload belongs to? I see there are relations defined in Post model has\_many :post\_uploads has\_many :uploads, through: :post\_upload…

---

## [Vagrant 1.8.7 will not download image. Reverting to 1.8.6 will work](https://meta.discourse.org/t/vagrant-1-8-7-will-not-download-image-reverting-to-1-8-6-will-work/53276)

<div class="topic-metadata">

**Author:** [@eriko](https://meta.discourse.org/u/eriko)\
**Replies:** 3\
**Last updated:** [November 29, 2016, 12:52am UTC](https://meta.discourse.org/t/vagrant-1-8-7-will-not-download-image-reverting-to-1-8-6-will-work/53276 "2016-11-29T00:52:35Z")

</div>

I am back to a bit more work on the the cas\_sso app and rebuilding things after doing a full wipe of my dev environment. Anyways I am getting the following while doing vagrant up default: Downloading: https://www.dropb…

---

## [Allow registrations of components as plugin outlets](https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 1\
**Last updated:** [November 28, 2016, 9:00pm UTC](https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464 "2016-11-28T21:00:12Z")

</div>

I am hitting an issue extending outlets in solved. At the moment in core we have: \<ul\> \<li\>{{#link-to 'userActivity.likesGiven'}}Likes Given{{/link-to}}\</li\> ... {{plugin-outlet "user-activity-bottom"}} \</ul\> …

---

## [Ember Inspector Can't See View Tree / Ember Inspector Version Issues](https://meta.discourse.org/t/ember-inspector-cant-see-view-tree-ember-inspector-version-issues/53477)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 5\
**Last updated:** [November 28, 2016, 8:34pm UTC](https://meta.discourse.org/t/ember-inspector-cant-see-view-tree-ember-inspector-version-issues/53477 "2016-11-28T20:34:28Z")

</div>

I noticed this morning that I could no longer see the full View Tree in my Ember inspector. Instead I just saw this: Obviously the first thing I did was check whether it was my dev environment or my browsers. I insta…

---

## [First Plugin Advice](https://meta.discourse.org/t/first-plugin-advice/53368)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 1\
**Last updated:** [November 27, 2016, 11:25pm UTC](https://meta.discourse.org/t/first-plugin-advice/53368 "2016-11-27T23:25:28Z")

</div>

I would like to attempt my first Discourse plugin and was hoping some nice folks could point me in the right direction. I’ve been reading through the Discourse codebase for a couple of days but trying to absorb it all is…

---

## [Ionic+discourse](https://meta.discourse.org/t/ionic-discourse/53387)

<div class="topic-metadata">

**Author:** [@DanteZii](https://meta.discourse.org/u/DanteZii)\
**Replies:** 3\
**Last updated:** [November 27, 2016, 10:57pm UTC](https://meta.discourse.org/t/ionic-discourse/53387 "2016-11-27T22:57:02Z")

</div>

Hello everyone This can be a funny question, I would like to know if someone has already created an ionic theme or full app for a speech forum … Thank you,

---

## [Are there any examples in Discourse of decorating a widget after an ajax request?](https://meta.discourse.org/t/are-there-any-examples-in-discourse-of-decorating-a-widget-after-an-ajax-request/44175)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 2\
**Last updated:** [November 26, 2016, 5:08pm UTC](https://meta.discourse.org/t/are-there-any-examples-in-discourse-of-decorating-a-widget-after-an-ajax-request/44175 "2016-11-26T17:08:30Z")

</div>

I would like to use api.decorateWidget after an Discourse.ajax has run. api.decorateWidget('post-contents:before', dec =\> { const attrs = dec.attrs; const result = \[\]; Discours…

---

## [Block form component](https://meta.discourse.org/t/block-form-component/53399)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 4\
**Last updated:** [November 26, 2016, 3:58pm UTC](https://meta.discourse.org/t/block-form-component/53399 "2016-11-26T15:58:10Z")

</div>

I’m attempting my first plugin and have come across this in the codebase: {{#discovery-categories refresh="refresh"}} {{component categoryPageStyle categories=model.categories latestTopicOn…

---

## [Routes.rb structure](https://meta.discourse.org/t/routes-rb-structure/53397)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 1\
**Last updated:** [November 26, 2016, 3:40pm UTC](https://meta.discourse.org/t/routes-rb-structure/53397 "2016-11-26T15:40:36Z")

</div>

hi I have a controller and action but my action don’t render any thing .it just send some json to some where. my routs.rb : get 'recom/recom' resources :recom do member do get 'recom/req' end e…

---

## [Existing JS module import into ES6 plugin](https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713)

<div class="topic-metadata">

**Author:** [@ntadej](https://meta.discourse.org/u/ntadej)\
**Replies:** 3\
**Last updated:** [November 25, 2016, 6:48pm UTC](https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713 "2016-11-25T18:48:01Z")

</div>

I’m writing a markdown plugin which needs an external JS for server side code. How to import the module properly so it will be detected by mini\_racer. I can either import JS module (as git submodule) or already compiled …

---

## [sendWidgetAction and Event not binding \`this\` to widget](https://meta.discourse.org/t/sendwidgetaction-and-event-not-binding-this-to-widget/53285)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 1\
**Last updated:** [November 24, 2016, 3:59pm UTC](https://meta.discourse.org/t/sendwidgetaction-and-event-not-binding-this-to-widget/53285 "2016-11-24T15:59:50Z")

</div>

This is mainly for @eviltrout but would have implications to all plugin devs. At the moment sendWidgetAction and Event is not binding this to the widget. sendWidgetAction(name, param) { return this.rerenderResult((…

---

## [Attachment records cleared doing post rebake](https://meta.discourse.org/t/attachment-records-cleared-doing-post-rebake/53259)

<div class="topic-metadata">

**Author:** [@junaid\_pk14](https://meta.discourse.org/u/junaid_pk14)\
**Replies:** 5\
**Last updated:** [November 22, 2016, 3:42pm UTC](https://meta.discourse.org/t/attachment-records-cleared-doing-post-rebake/53259 "2016-11-22T15:42:56Z")

</div>

Hello, We have around more than 5 lac attachments in Vbulletin. When we imported these posts into Discourse same no of records were created in the ‘uploads’ table. Recently for some reasons we rebake the posts and all r…

---

## [My plugin codes runs just once!(My own script shouldn't be cached)](https://meta.discourse.org/t/my-plugin-codes-runs-just-once-my-own-script-shouldnt-be-cached/51301)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 17\
**Last updated:** [November 21, 2016, 10:10pm UTC](https://meta.discourse.org/t/my-plugin-codes-runs-just-once-my-own-script-shouldnt-be-cached/51301 "2016-11-21T22:10:29Z")

</div>

Hi. I wrote a plugin and I run my code. my code run just for the first page of my website.even if it is a simple alert.for example if you open front page and go to categories page the alert doesn’t work on new page.

[Previous page](https://meta.discourse.org/c/dev/7.md?page=136)

[Next page](https://meta.discourse.org/c/dev/7.md?page=138)
