Forum OpenACS Development: Knowing the page user is currently on

I am completely new to Open ACS so this question might seem simple but I have a template that I've built that will be used on every page on my site. I'd like that template to know what page the user is currently on so that it can make certain things looks bold depending on what page they are on. I know that I can use the IF statement but I'm wondering how I know what page is displayed? Is it a variable?
Collapse
Posted by Brian Fenton on
Hi Michelle,

Welcome to the community!

One way to get the current page is to use ad_conn https://openacs.org/api-doc/proc-view?proc=ad%5fconn

like this for example:
set current_url "[ad_conn url]?[ad_conn query]"

hope this helps
Brian