Hey there,
It’s been a while, but I think in the end that I couldn’t get it to work, no matter where I placed the exp:weblog tags, inside freeform, outside, or embed. What DID work for me is using the query tag in the embed, instead of the weblog tag. Here’s what I did:
Within the freeform, add an embed tag like this (ex: for a dropdown field):
<select name="event_name">
<option value="">Please select...</option>
{embed="my_templategroup_name/my_template"}
</select>
I created a template group, and template. In the template, I had to use an {exp:query....} tag, as the {exp:weblog...} tag wouldn’t parse. Here’s that template:
{exp:query sql="SELECT title, entry_id FROM exp_weblog_titles WHERE weblog_id = '31' AND status='open' ORDER BY title"}
<option value="{title}">{title}</option>
{/exp:query}
That’s the general idea anyway. This builds a select list using the entry titles from all open entries in the weblog with an ID of 31.
(My actual code is a little more complexe than above, as I’m also reading the url segments to check for an entry ID, and having the dropdown preselected if there is one...)
If that’s not clear, just drop me a line here, and I’ll try to clarify.
Cheers,
Ira