I'm trying to put together a theme, possibly for distribution, that includes as a feature a more dynamic index page. No categories, archives, or links in the sidebar itself, but linked to in the sidebar and generated dynamically upon request. So all pages would have a navigation menu in place of a sidebar, and links, categories, etc would be generated in the main body of the page according to user request. It would be easy to slap separate pages in my root directory (links.php, etc), but that would be a touch inelegant and would break up the theme.
So I'm thinking... should I GET a string from the URL and link conditionally to it? i.e., if $var=="links" (do links), elseif $var=="categories" (do categories), elseif $var=="archives" (do archives), else (do the existing loop for posts and comments). How would I do this? Is there a better way?
Searching the codex for this is giving me pains. I need some specific syntax to make this work, because I'm v. much a php newbie. Any tips or links?