I'm cross-posting this from d.o. since perhaps some Ubercart user has implemented just the feature I'm trying to implement: a dynamic menu title in d6.
The menu title is something like this: Shopping Cart (5). The number (5 in this case) is different depending on how many items they have in their cart. It can't be cached at all because it can change as items get added to the cart. I've tried using "title callback" and "title arguments" in my hook_menu() but it to no avail. I thought I came across the solution when I came across issue #420828t. Using that issue as a guide I created a little bit of javascript to dynamically update menu title with the number of items via drupal_add_js($settings) in hook_init(). Only to find out that hook_init() is cached! Argh.
I then tried hook_boot() and hook_exit() but for whatever reason drupal_add_js() in those hooks didn't actually add the variables to the javascript settings hash. Finally, I added it is a raw variable in my page.tpl.php only to find it is cached as well. This seems like it should be a simple problem to solve -- anyone know how to get a dynamic piece of content outputted to the page with Normal caching turned on?
