XF 2.3 Right way of changing the $xf.options.boardTitle/$siteName just on the main page

tenants

Well-known member
Licensed customer
I'm just getting back into the swing of things, reading the tutorials and watching kiers fun video's

If this a good way of updating the board title just on the main page (basically, I want a style "by my company" on the board title, but not on the threads)
SO:

1) I've created a custom style (it will be my only/default style)
2) to the template called "PAGE_CONTAINER"

I've changed the template to this:

Code:
<xf:if is="!$noH1">
   <xf:if is="{{$siteName==$h1}}">
     <h1 class="p-title-value">{$h1} By <span class="aut-tick-title"><span class="aut">Aut-</span><span class="tick">Tick</span></span></h1>
   <xf:else />
     <h1 class="p-title-value">{$h1}</h1>  
   </xf:if>
 </xf:if>


It looks okay, just my first basic changes (and only style at the moment), I'm just getting the hand of template system again


How it looks so far (looks right, but is this the right way of doing it)

oksofar.webp
 
Or you could just use my free addon which does it all for you, including updating metadata?


... although I don't do the custom styling of the company name and haven't tested whether you could achieve the same thing using my addon.
 
Back
Top Bottom