Dang- that’s a good thread. I think I’m not going to merge, as it would just confuse the issue. And I’ll leave it here as long as we’re focusing on how to use the query module- rather than the query itself.
You’ve got the basic format right, the problem is, to really make use of it, you need to be very familiar with EE’s database and know how to write a query. Which I’m pretty good at- and there’s still a ton of stuff that’s way over my head.
But basically? In the above example, your problem is those fields don’t exist in EE’s database- so it’s just going to error. What you’re telling it is to go look in exp_weblog_fields and bring back the content in columns named ‘shows_venue’ etc. Those columns don’t exist. You could bring back ‘field_name’ or ‘field_label’- basically, go to ‘Admin- Utilities- SQL Manager- Manage DB tables’ and go browse the exp_weblog_fields table. The column headings? Those are your fields- you can pull back the content in those fields- grabbing the short_name of every custom field in group_id 2, for example.
Which as far as I can tell, wouldn’t really make sense to try to include in the calendar output- but that’s another issue entirely.
So- you’ve got the basic syntax for the module down- the problem is with the query itself. You’re trying to pull from fields that don’t exist. And even if you pull that data, I’m fuzzy on how it would help displaying field content in the calendar. For that, you’d want to look at the exp_weblog_data table- check the field names, figure out which ones you need to pull in, then write a query to pull those fields from that table- where entry_id= the entry_id available in the calendar entries.
Er- make sense?