# عرض حقل المشاركة المخصص في قائمة الأعلام

**URL:** <https://meta.discourse.org/t/rendering-custom-post-field-in-flagged-queue/81991>\
**Category:** Development\
**Created:** [2 مارس 2018، 6:13م UTC](https://meta.discourse.org/t/rendering-custom-post-field-in-flagged-queue/81991 "2018-03-02T18:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![george.thomson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/george.thomson/32/91050_2.png) [@george.thomson](https://meta.discourse.org/u/george.thomson)\
**Post date:** [2 مارس 2018، 6:13م UTC](https://meta.discourse.org/t/rendering-custom-post-field-in-flagged-queue/81991/1 "2018-03-02T18:13:21Z")

</div>

Hi,

I am trying to render a custom field in a plugin outlet but cannot seem to get access to it. The outlet being used is `flagged-post-below-controls` plugin outlet in `/app/assets/javascripts/admin/templates/components/flagged-post.hbs` but the “flaggedPost” that gets passed to my template does not have the custom field.

The custom field is added to the Post serializer, and access to it from another custom template (not a plugin outlet) works just fine so I am missing something obvious about flaggedPost.

Added to serializer

```
add_to_serializer(:post, :my_custom_field) do
  post_custom_fields["my_custom_field"]
end

```

Using it a custom template for a custom queue

```
  <div>
    {{#if post.my_custom_field }}
        <span>Value: {{post.my_custom_field}}</span>
    {{~else~}}
	  <span>No custom field value</span>
    {{/if}}
  </div>

```

Trying to access it like this in `assets/javascripts/discourse/templates/connectors/flagged-post-below-controls/my_outlet.hbs` (i.e. `flaggedPost.my_custom_field`) does not work.

I know I am missing something obvious, but I have no experience with Ruby/Rails/Discourse so any help would be appreciated!

Thanks

---

_[View the full topic](https://meta.discourse.org/t/rendering-custom-post-field-in-flagged-queue/81991)._
