I've been thinking about mobile web. Most nodes have a chunk of primary content, then what I'll call secondary content (related content to the current node, but not the main focus) and tertiary content (navigation, footers, headers etc). I would like to focus on primary content and keep the rest as minimal as possible.
The tertiary bit isn’t a problem, mostly theming stuff with media queries. The primary content isn’t too hard to sort out. Drupal seems to do a fine job of separating these things. Where I’m having trouble is the secondary content, particularly comments.
What I would like to do is:
Don’t automatically show comments
If there are no comments, don’t show anything (drupal does this by default)
If there are comments, show a link, preferably with a comment count “ 14 comments” or something like that
A person selects the link and the comments are exposed.
Ideally this would be happen programmatically, not just hiding the comment block with CSS, don’t want it to load unless requested.
Ajax load would be nice so the page doesn’t reload
Any ideas on how I can do this?