# Macro Set Default Content

**URL:** <https://forum.xwiki.org/t/macro-set-default-content/5418>\
**Category:** Help / Discuss\
**Created:** [August 23, 2019, 10:22am UTC](https://forum.xwiki.org/t/macro-set-default-content/5418 "2019-08-23T10:22:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttsp](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@ttsp](https://forum.xwiki.org/u/ttsp)\
**Post date:** [August 23, 2019, 10:22am UTC](https://forum.xwiki.org/t/macro-set-default-content/5418/1 "2019-08-23T10:22:58Z")

</div>

Hey,  
Is it possible to set the macro content to a default value, like a macro parameter has its default value?

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [August 23, 2019, 9:31pm UTC](https://forum.xwiki.org/t/macro-set-default-content/5418/2 "2019-08-23T21:31:05Z")

</div>

You can do this ATM only from the macro code by checking if the macro content is empty.

---

<div class="post-metadata">

**Author:** ![ttsp](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@ttsp](https://forum.xwiki.org/u/ttsp)\
**Post date:** [August 26, 2019, 2:20pm UTC](https://forum.xwiki.org/t/macro-set-default-content/5418/3 "2019-08-26T14:20:21Z")

</div>

Ah got it, thanks for the tip.  
Have a nice day!
