# I want to use custom params in plugin-outlet

**URL:** https://meta.discourse.org/t/i-want-to-use-custom-params-in-plugin-outlet/190381
**Category:** Development
**Created:** [May 14, 2021, 7:15am UTC](https://meta.discourse.org/t/i-want-to-use-custom-params-in-plugin-outlet/190381 "2021-05-14T07:15:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Programer-D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/programer-d/32/215194_2.png) [@Programer-D](https://meta.discourse.org/u/Programer-D)
#### Post date: [May 14, 2021, 7:15am UTC](https://meta.discourse.org/t/i-want-to-use-custom-params-in-plugin-outlet/190381/1 "2021-05-14T07:15:27Z")

</div>

In my plugin “SearchUserWithUserFilelds”.

~javascript/template/my\_plugin.hbs

```plaintext
<div id="search-result" class="search-result">
    {{#each filtered_users as |user|}}
      {{user-info user=user}}
    {{/each}}
  </div>

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/7/37c9d5b23ce86d11d0f4e4ff957d62c01dccd849.png)

I would like to put the information of user-fields in user-info.  
At this time  
in connectors/after-user-name/user\_detail.hbs

```plaintext
<div class="search-detail">{{user.user_fields1}}</div>
<div class="search-detail">{{user.user_fields2}}</div>
<div class="search-detail">{{user.user_fields3}}</div>

```

I want to prepare a Boolean that determines whether or not to display each UserFieldsInformation.  
In the future, though, I’ll provide a checkbox to show or hide. But for now, this is just a test.

I have tried the following.  
~controllers/my\_plugin.js.es6

```plaintext
export default Ember.Controller.extend({
  display_user_filed1:true,
  display_user_filed1:true,
  display_user_filed1:true
});

```

and rewrite connectors/after-user-name/user\_detail.hbs

```plaintext
{{#if display_user_field1}}<div class="search-detail">{{user.user_fields1}}</div>{{/if}}
{{#if display_user_field2}}<div class="search-detail">{{user.user_fields2}}</div>{{/if}}
{{#if display_user_field3}}<div class="search-detail">{{user.user_fields3}}</div>{{/if}}

```

At this time, UserFieldsInformation is no longer displayed.

In conclusion.  
In plugin-outlet, How can I use the param of the parent controller(?) in plugin-outlet?

I think I don’t understand Ember well enough.  
I would be very happy to get your answer.
