# Insertable, centrally maintained text/markdown snippets

**URL:** <https://meta.discourse.org/t/insertable-centrally-maintained-text-markdown-snippets/97246>\
**Category:** Developers\
**Tags:** reference\
**Created:** [September 15, 2018, 7:17am UTC](https://meta.discourse.org/t/insertable-centrally-maintained-text-markdown-snippets/97246 "2018-09-15T07:17:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [September 15, 2018, 7:17am UTC](https://meta.discourse.org/t/insertable-centrally-maintained-text-markdown-snippets/97246/1 "2018-09-15T07:17:42Z")

</div>

I was wondering if there was any way I could define a string of text in a single place and insert it within posts with a single, short reference.

It’s a bit like the out of the box `Admin -> Customize -> Text Content`, but for my own custom variables that can be inserted into posts.

My use case was adding a disclaimer for my affiliate links. As the number of affiliate links grew across many posts and Topics I noted that my disclaimers were proliferating along with them. I occasionally like to make improvements to the disclaimers and this gets more onerous as the number grows.

I’m also considering making my affiliate links more generic so I have one centrally managed link for each product link, for example, which appears multiple times. If that product link changes, I only have to change it in one place.

Obviously I might be able to do some kind of rails find & replace, but that’s not as clean/safe nor ‘online’.

So I wanted a place to define & maintain a text string in a single place and have changes immediately reflected everywhere that is used on next page view.

**Read on for @Johani’s solution!:**

---

_[View the full topic](https://meta.discourse.org/t/insertable-centrally-maintained-text-markdown-snippets/97246)._
