# 게시물에 시스템 변수를 삽입하는 방법?

**URL:** https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425
**Category:** Support
**Created:** [10월 19, 2019, 9:17오전 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425 "2019-10-19T09:17:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ariznaf](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@ariznaf](https://meta.discourse.org/u/ariznaf)
#### Post date: [10월 19, 2019, 9:17오전 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/1 "2019-10-19T09:17:07Z")

</div>

게시물에 시스템 변수(예: site\_name)를 삽입하고 싶습니다.

우리 사이트의 site\_name이 OJODIGITAL이라면, 게시물에 site\_name이라는 텍스트를 삽입했을 때 OJODIGITAL로 대체될 것으로 기대했지만, 실제로는 그렇지 않습니다.

> 안녕하세요, %{site\_name} 사이트에서 …를 볼 수 있습니다.

이러한 구조는 텍스트 커스터마이징 메시지(사이트 설정/커스터마이즈/텍스트)에서 본 적이 있습니다.

이것이 가능한가요? 어떻게 해야 하나요?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 19, 2019, 3:27오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/2 "2019-10-19T15:27:30Z")

</div>

현재 시점에서는 불가능합니다.

---

<div class="post-metadata">

### Author: ![ariznaf](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@ariznaf](https://meta.discourse.org/u/ariznaf)
#### Post date: [10월 19, 2019, 4:14오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/3 "2019-10-19T16:14:02Z")

</div>

네, 감사합니다. 기능 개선으로 추가하겠습니다.

---

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [10월 19, 2019, 6:30오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/4 "2019-10-19T18:30:12Z")

</div>

그동안 JavaScript를 사용할 수 있습니다.

> [@Using Discourse variables to personalize embedded Typeform](https://meta.discourse.org/t/using-discourse-variables-to-personalize-embedded-typeform/111329/5):
>
> Here is my (somewhat clumsy) solution, in case it helps someone. I added this code under Admin \> Customize \> Themes \> Edit CSS/HTML \> /head: \<script type="text/discourse-plugin" version="0.8"\> api.decorateCooked($elem =\> { var i, j; var selector = 'https://example.typeform.com'; // seems like this should work but it doesn't: // var typeforms = $elem[0].querySelectorAll('src^=[' + selector + ']'); var ps = $elem[0].querySele…

---

<div class="post-metadata">

### Author: ![ariznaf](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@ariznaf](https://meta.discourse.org/u/ariznaf)
#### Post date: [10월 19, 2019, 8:00오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/5 "2019-10-19T20:00:36Z")

</div>

mark님, 정말 감사합니다.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6월 28, 2023, 8:44오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/6 "2023-06-28T20:44:22Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [7월 28, 2023, 8:44오후 UTC](https://meta.discourse.org/t/how-to-insert-a-system-variable-in-a-post/131425/7 "2023-07-28T20:44:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
