# Possible to let a Template define the title of the new page?

**URL:** <https://forum.xwiki.org/t/possible-to-let-a-template-define-the-title-of-the-new-page/15520>\
**Category:** Help / Discuss\
**Tags:** xwiki\
**Created:** [September 11, 2024, 12:21pm UTC](https://forum.xwiki.org/t/possible-to-let-a-template-define-the-title-of-the-new-page/15520 "2024-09-11T12:21:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elias](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/e/41988e/32.png) [@Elias](https://forum.xwiki.org/u/Elias)\
**Post date:** [September 11, 2024, 12:21pm UTC](https://forum.xwiki.org/t/possible-to-let-a-template-define-the-title-of-the-new-page/15520/1 "2024-09-11T12:21:57Z")

</div>

See title. We have some users, who would like to structure their blog entries using the current date as part of the title, and they would like that to be automatically provided when they are using a certain template.

Is that possible ? As far as I know, a template can only define the content of the page of which it is to be inserted to, but not the title? Am I missing something ?

---

<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:** [September 11, 2024, 12:41pm UTC](https://forum.xwiki.org/t/possible-to-let-a-template-define-the-title-of-the-new-page/15520/2 "2024-09-11T12:41:00Z")

</div>

A template can have a title set. When a new page is created from a template, the template document is copied (thus its title is also copied).

Now, the problem is that the Create dialog always overwrites the title to be the one set by the user in the UI…

At the technical level the URL called is for example the following for the Encyclopedia Template: `[http://localhost:8080/xwiki/bin/edit/aaa/WebHome?template=Templates.Encyclopedia.Template.WebHome&parent=Main.WebHome&title=tttt&form\_token=xxxx``](http://localhost:8080/xwiki/bin/edit/aaa/WebHome?template=Templates.Encyclopedia.Template.WebHome&parent=Main.WebHome&title=tttt&form_token=xxxx%60%60)

Notice the passing of the `title` parameter.

If you create such a URL manually and remove the `title` parameter, the template title would be used, for example: `http://localhost:8080/xwiki/bin/edit/bbb/WebHome?template=Templates.Encyclopedia.Template.WebHome&parent=Main.WebHome`

I guess we would need an advanced option (checkbox) to use the template title or not. Feel free to create a jira issue at [https://jira.xwiki.org](https://jira.xwiki.org)

Thx

---

<div class="post-metadata">

**Author:** ![Telcoced](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@Telcoced](https://forum.xwiki.org/u/Telcoced)\
**Post date:** [September 12, 2024, 12:39pm UTC](https://forum.xwiki.org/t/possible-to-let-a-template-define-the-title-of-the-new-page/15520/3 "2024-09-12T12:39:30Z")

</div>

I opened [Loading...](https://jira.xwiki.org/browse/TEMPLATES-19)
