× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
add menu item: go to page... unless I'm already on that page
#1
Hi,

I want ot add a new item to the navigation bar (using db based navigation), that navigates to a particular page, unless the user is already on that page, in which case it should just run some javascript function.


I guess the link could call a function that parses the page URL and decides based on that - but neiter I'm sure how to do htis, nor do I know if there's a better / more idiomatic solution.

Sorry if this is a dumb beginners question, looks like I am Wink

tia
  Reply


Messages In This Thread
add menu item: go to page... unless I'm already on that page - by peterchen - 11-20-2018, 11:22 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)