# Update parameter in Info Macro

**URL:** <https://forum.xwiki.org/t/update-parameter-in-info-macro/1177>\
**Category:** Help / Discuss\
**Tags:** macro, parameters, info\
**Created:** [December 12, 2017, 7:23am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177 "2017-12-12T07:23:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 12, 2017, 7:23am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/1 "2017-12-12T07:23:21Z")

</div>

Is it possibile to add parameters in info macro?

I have checked macro [extension](http://extensions.xwiki.org/xwiki/bin/view/Extension/Info%20Macro). It doesn’t contain any source, may be it could be moved to core. Someone please help me out the location to make this changes in my local xwiki.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [December 12, 2017, 8:37am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/2 "2017-12-12T08:37:03Z")

</div>

> [@prase09](#):
>
> It doesn’t contain any source

Fixed 🙂

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 12, 2017, 8:39am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/3 "2017-12-12T08:39:04Z")

</div>

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 14, 2017, 4:58am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/4 "2017-12-14T04:58:48Z")

</div>

@vmassol

Is it possible for you to enable the title parameter in **info** macro. I have tired to buid the project in eclipse luna ended up with build errors.

> {{info **title=“xxx”** }}  
> info content  
> {{/info}}

Could you please.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [December 14, 2017, 8:08am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/5 "2017-12-14T08:08:38Z")

</div>

Hi @prase09 There’s no title in the info macro. Maybe you’re referring to the box macro?

See [http://extensions.xwiki.org/xwiki/bin/view/Extension/Info%20Macro](http://extensions.xwiki.org/xwiki/bin/view/Extension/Info%20Macro) and [http://extensions.xwiki.org/xwiki/bin/view/Extension/Box%20Macro](http://extensions.xwiki.org/xwiki/bin/view/Extension/Box%20Macro)

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 14, 2017, 8:34am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/6 "2017-12-14T08:34:39Z")

</div>

@vmassol

I have referred both the sources(info & box) from github, they have extended BoxParameter Class in info macro for setting cssClass.

 ![image](https://forum.xwiki.org/uploads/default/original/1X/3f7b6f4fb2ff5e720a29350be08b37674221a1fd.png)

**Link:** [xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/AbstractMessageMacro.java at master · xwiki/xwiki-rendering · GitHub](https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/AbstractMessageMacro.java)

 ![image](https://forum.xwiki.org/uploads/default/original/1X/716a1f88d21717aeb3f4683d1d2fc18acc29c6cc.png)

**Link:** [xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-box/src/main/java/org/xwiki/rendering/macro/box/BoxMacroParameters.java at master · xwiki/xwiki-rendering · GitHub](https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-macros/xwiki-rendering-macro-box/src/main/java/org/xwiki/rendering/macro/box/BoxMacroParameters.java)

I think, it is possible to integrate “title” in info macro?

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [December 14, 2017, 8:42am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/7 "2017-12-14T08:42:58Z")

</div>

So basically you’re asking for a new feature to add a title to the info macro (and more generally to all message macros).

Would be nice if you could file a jira issue for this, and maybe even provide a PR for it 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 14, 2017, 8:58am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/8 "2017-12-14T08:58:12Z")

</div>

@vmassol

Yes i have created an jira issue, [Loading...](https://jira.xwiki.org/browse/XRENDERING-487)

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [December 14, 2017, 9:01am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/9 "2017-12-14T09:01:49Z")

</div>

Thanks a lot. Seems you have looked in the source code. Maybe you could send a PR as the next step? 🙂

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 14, 2017, 9:04am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/10 "2017-12-14T09:04:47Z")

</div>

@vmassol

> [@vmassol](#):
>
> Maybe you could send a PR as the next step?

Sorry, i couldn’t figure out what PR is.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [December 14, 2017, 9:07am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/11 "2017-12-14T09:07:14Z")

</div>

PR = [About pull requests - GitHub Docs](https://help.github.com/articles/about-pull-requests/)

Basically it means providing a patch/fix for it.

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 14, 2017, 9:13am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/12 "2017-12-14T09:13:41Z")

</div>

@vmassol

😃 sorry, i have used the term “pull request” often than its short form. Coming to point, i have took check out of your source. But while building i was stuck with an error regarding ravapi incompatbile with maven version.

Environment: Eclipse Luna, Maven - 3.2.1

I have made an rough code, i need to ensure those. If you could help me out from overcoming those errors. It would be so helpful to provide you an PR.

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [December 18, 2017, 5:45am UTC](https://forum.xwiki.org/t/update-parameter-in-info-macro/1177/13 "2017-12-18T05:45:06Z")

</div>

@vmassol

I have resolved and updated the title parameter with some modifications. I’ll update the PR by today or tomorrow.
