I would like to include my main menu in the different pages using either <cfinclude> or <custom_tag>, rather than having it hard coded in each page as it is now! My problem, though, is not how to use <cfinclude> or <custom_tag> but in the fact how I should declare a current page for each menu item when on that particular page, which I now accomplish using CSS
<a href="#" class="current">
which I can use since the menu is hard coded in each page. I’m breaking my head :headbang: on how to reach the same result when the menu is included.
Hi rudy. That is what I was thinking, but it isn’t doing what I expected? In other words it doesn’t give me the current state when on the desired page. This what I have:
to work. Whenever I add the class current to the class behind the <cfelse> the current class is working, but remains in that state. So maybe the GetFileFromPath is not the right way to tackle this. Any other suggestions are more than welcome
results in what I described in my former post, I presume it’s a Coldfusion problem. I.O.W. Behind the <cfelse> would mean that I’m not on that particular page(index_eng.cfm) right? But when I use: