Sorry for perhaps a dumb question.
How would i detect in _main.php (my skin's main) what type of page i am generating? (i.e. whether its a search, category listing, comment or calendar entry display, etc)
I know some can be partially detected by checking $disp, but for example caledar entry display and general post display are both 'posts' and i need to know exactly.
Thank you alot.
To check to see if you're looking at search results, try this
There aren't any calendar entry pages, as far as I know. The calendar just generates links to daily archive pages. Turn off extra-path info and then look at the url in various pages you want to know more about. You'll see something=something in the url and that will show you what variables you need to check. Then you can turn extra-path info back on.