Neos CMS: How to overwrite tag in head of template</a></h1> </div> <div class="grid fw-wrap pb8 mb16 bb bc-black-075"> <div class="grid--cell ws-nowrap mr16 mb8" title="2016-01-12 19:07:53Z"> <span class="fc-light mr2">Asked</span> <time itemprop="dateCreated" datetime="2018-02-27T12:24:32.480" class="fromnow">Feb 27 '18 at 12:24</time> </div> <div class="grid--cell ws-nowrap mr16 mb8"> <span class="fc-light mr2">Active</span> <time class="fromnow" title="2018-02-28T09:38:00.797" datetime="2018-02-28T09:38:00.797">Feb 28 '18 at 09:38</a> </div> <div class="grid--cell ws-nowrap mb8" title="Viewed 512 times"> <span class="fc-light mr2">Viewed</span> 512 times </div> </div> <div id="mainbar" role="main" aria-label="questions and answers"> <div id="question" class="question" data-questionid="49008648" data-ownerid="3918585" data-score="0"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="49008648"> <button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"></path></svg></button> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="0">0</div> <button class="js-bookmark-btn s-btn s-btn__unset c-pointer py4"> <svg aria-hidden="true" class="svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M6 1a2 2 0 00-2 2v14l5-4 5 4V3a2 2 0 00-2-2H6zm3.9 3.83h2.9l-2.35 1.7.9 2.77L9 7.59l-2.35 1.7.9-2.76-2.35-1.7h2.9L9 2.06l.9 2.77z"></path></svg> <div class="js-bookmark-count mt4" data-value=""></div> </button> </div> </div> <div class="postcell post-layout--right"> <div class="s-prose js-post-body" itemprop="text"><p>How can I overwrite the existing title tag in the head part of my default template? I can add a new tag but the default title tag is still there. Also I would like to add the description of the page.</p> <p><strong>default.html:</strong></p> <pre><code><head> <f:section name="meta"> <title>{title}</title> <meta name="description" content="{description}"> </f:section> </head> </code></pre> <p><strong>root.fusion:</strong></p> <pre><code>page = Neos.Neos:Page { head { meta = Neos.Fusion:Template { templatePath = 'resource://Test.Package/Private/Templates/Page/Default.html' sectionName = 'meta' title = ${'Test | ' + q(node).property('title')} description = ${q(node).property('description')} } </code></pre> <p>I tried to make it according the example on the Neos CMS documentation: <a class="external-link" href="http://neos.readthedocs.io/en/stable/CreatingASite/RenderingCustomMarkup/AdjustingOutput.html?highlight=meta#the-head" rel="nofollow noreferrer">http://neos.readthedocs.io/en/stable/CreatingASite/RenderingCustomMarkup/AdjustingOutput.html?highlight=meta#the-head</a></p></div> <div class="mt24 mb12"> <div class="post-taglist grid gs4 gsy fd-column"> <div class="grid ps-relative"> <a href="../../questions/tagged/fusion" class="post-tag js-gps-track" title="show questions tagged 'fusion'" rel="tag">fusion</a> <a href="../../questions/tagged/neoscms" class="post-tag js-gps-track" title="show questions tagged 'neoscms'" rel="tag">neoscms</a> </div> </div> </div> <div class="mb0"> <div class="mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4 mb16"> <div class="grid--cell mr16 fl1 w96"></div> <div class="post-signature owner grid--cell"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '18 at 12:24">asked Feb 27 '18 at 12:24</time> <a href="../../users/3918585/highliner" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3918585.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="highliner" /> </a> <div class="s-user-card--info"> <a href="../../users/3918585/highliner" class="s-user-card--link">highliner</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">107</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> <div class="post-layout--right js-post-comments-component"> </div> </div> </div> <div id="answers"> <a name="tab-top"></a> <div id="answers-header"> <div class="answers-subheader grid ai-center mb8"> <div class="grid--cell fl1"> <h2 class="mb0" data-answercount="9">1 Answers<span style="display:none;" itemprop="answerCount">1</span></h2> </div> </div> </div> <a name="49026249"></a> <div id="answer-49026249" class="answer accepted-answer" data-answerid="49026249" data-ownerid="4031969" data-score="5" itemprop="acceptedAnswer" itemscope="" itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="49026249"> <button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"></path></svg></button> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="5">5</div> <div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8"><div class="ta-center"><svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"></path></svg></div></div> </div> </div> <div class="postcell post-layout--right"> <div class="s-prose js-post-body" itemprop="text"><p>The title tag is set by <code>titleTag</code> in <code>head</code> section of Fusion template. To overwrite it you have to do it as follows:</p> <pre><code>page = Neos.Neos:Page { head { titleTag = Neos.Fusion:Tag { tagName = 'title' content = ${'Test | ' + q(node).property('title')} } </code></pre> <p>You can also leave it as you have in your sample, but you have to set <code>titleTag</code> to <code>null</code>:</p> <pre><code>page = Neos.Neos:Page { head { titleTag = null </code></pre></div> <div class="mb0"> <div class="mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4 mb16"> <div class="grid--cell mr16 fl1 w96"></div> <div class="post-signature grid--cell"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="answered Feb 28 '18 at 09:38">answered Feb 28 '18 at 09:38</time> <a href="../../users/4031969/marian0" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4031969.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="marian0" /> </a> <div class="s-user-card--info"> <a href="../../users/4031969/marian0" class="s-user-card--link">marian0</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,336</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="27 silver badges">27</li> <li class="s-award-bling s-award-bling__bronze" title="37 bronze badges">37</li> </ul> </div> </div> </div> </div> </div> </div> <div class="post-layout--right js-post-comments-component"> </div> </div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>