# Agregar una configuración personalizada por usuario en un plugin

**URL:** https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048
**Category:** Developers
**Tags:** plugin-guides, how-to
**Created:** [6 Agosto, 2018 20:39 UTC](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048 "2018-08-06T20:39:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)
#### Post date: [24 Marzo, 2021 11:37 UTC](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048/12 "2021-03-24T11:37:44Z")

</div>

Este es un post muy útil que presenta un ejemplo claro de cómo configurar un campo personalizado de usuario. ¿Existe algo similar para ayudar a guiar la creación de un campo personalizado de tema sencillo? Estoy intentando resolverlo aquí:

> [@How to add a super basic topic custom field](https://meta.discourse.org/t/how-to-add-a-super-basic-topic-custom-field/184229):
>
> I’m trying to understand how to add a custom field to topics, and working through a very basic example. Goal: Add a custom field called “sample\_field” to each topic created, with a simple string value. I’ve reviewed various examples, like [the poll plugin](https://github.com/discourse/discourse/tree/master/plugins/poll) and the [solved plugin](https://github.com/discourse/discourse/tree/master/plugins/poll) and [this discussion](https://meta.discourse.org/t/how-to-add-custom-field-to-topic/57948/2), but these plugins do so much more with their custom fields that I haven’t yet figured out the basic code you need. So I’m not quite there–my plugin.rb file is missing something (I think), and I haven’…

Pero aún no he logrado que funcione correctamente. Agradecería mucho cualquier ayuda al respecto.

---

_[View the full topic](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048)._
