Auto Display Page Title

To add an Auto Generated Page Title to a page, add this line of code and style:

<h1>
  <cfif qry_pageinfo.fldToolBarTitle is not "">
    <cfset displayTitle = qry_pageinfo.fldToolBarTitle>
  <cfelse>
    <cfset displayTitle = qry_pageinfo.fldTitle>
  </cfif>
  <cfoutput>#displayTitle#</cfoutput>
</h1>
 

If the above does not work:

<h1>
<cfset request.page_title = qry_pageinfo.fldToolBarTitle>
<cfif len(Trim(qry_pageinfo.fldTitle))>
<cfset request.page_title = Trim(qry_pageinfo.fldTitle)>
</cfif> </h1>