Display a navbar or hide it by page
I have a website where the navigation bar appears on every page. This is so I can edit the navbar in one location and it will change in each subsequent page automatically. However I want to have the option to display the navbar or not display it based on the type of page that it is.
I achieved the navbar being displayed on each page via my application.cfc under the “request start“ tag. Is there a way that I can selectively omit my navigation bar depending on the page that I select?
Any suggestions on the direction? I should go with my coding
<cffunction name="onRequestStart" returnType="boolean" output="true"> <!--- Any variables set here can be used by all our pages --->
<!---02/20/2023--->
<cfinclude template="navbar_admin.cfm">
<cfset request.companyName = "BK_Club">
