As for the current url, I've been using the $view variable and other hacks within index.tpl, the Hemingway template demonstrates my approach, but if you figure out how to do this in config then I'll be interested in snatching your solution
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
The posted URL should work always, because it uses the fallback-URL mechanism that works on all s9y installations.
Using the rewritten URL would work if your template's config.inc.php simply assigns the $_SERVER['REQUEST_URI'] as a smarty variable and you use that one.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
$_SERVER['REQUEST_URI'] did the trick . I wanted the url as the user sees it because that's what he's going to use when he customizes a theme's top nav bar in the admin backend. I wanted to be able to highlight the current page's entry in that nav bar. I've done that now and you should see a fresh theme release soon .
Carl and anybody else that is interested in how to refer to the current page url in config.inc.php can use this: