EllisLab text mark
Advanced Search
     
Weblog tags inside Freeform?
Posted: 02 February 2007 06:55 PM   [ Ignore ]
Avatar
Joined: 2003-08-03
33 posts

I’m guessing the answer to this is, no, but does anyone know if it’s possible to put exp:weblog:entries inside the Solspace Freeform tags. I’m looking to populate <option> tags with titles from weblog entries. If not possible, can anyone recommend an approach that might deliver the same results?

Thanks!

 Signature 

Phil Hertzler
TDC Design

 
Posted: 02 February 2007 07:18 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 posts

I haven’t tried it, but why wouldn’t it work? I’d use the query module instead, though.

 
Posted: 02 February 2007 07:56 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4241 posts

I need to do roughly the same thing - build a form based on weblog entries. 

I’ve tried it with Freeform, and no it didn’t work.  I didn’t try the query module however. 

The only thing I don’t know is what happens in FreeForm if you don’t have the fields defined first.  In my case the fields will be made up on the fly.

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 01 April 2007 08:46 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2005-08-05
336 posts

I’m having no luck with the weblog module or the query module.

 
Posted: 02 April 2007 04:03 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2005-01-05
115 posts

Phil, I did something similar recently and it worked quite well.  I wanted to populate multiple radio buttons in a FreeForm based on fields in a weblog entry.  Although I wrapped the freeform tag inside the weblog entries tag, not the other way around.  It worked well.

You can see it in action here: http://www.newconsumer.com/competitions/item/win_a_pairs_of_recycled_trainers/

 Signature 

Celebrating again soon.

 
Posted: 02 April 2007 08:45 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4241 posts

Just FYI - I ended up using the weblog module with FormMail and was successful - although having a variable fieldset restricted the ability to easily do some nicer things within FormMail -  like results templates for email formatting.

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 03 April 2007 01:31 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2005-08-05
336 posts

Phil, I did something similar recently and it worked quite well.  I wanted to populate multiple radio buttons in a FreeForm based on fields in a weblog entry.  Although I wrapped the freeform tag inside the weblog entries tag, not the other way around.  It worked well.

You can see it in action here: http://www.newconsumer.com/competitions/item/win_a_pairs_of_recycled_trainers/

Those groovy shoes are so distracting.  I spent way too much time looking at them this morning.

I was trying to populate a category list - and I had the categories tag within freeform tags.  Don’t think it could have been done the other way. Turned out both the query module and the categories tag worked within the contact form.  Sometimes simple works best. But it’s good to know that it works with freeform on the inside.

 
Posted: 08 August 2007 09:37 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Joined: 2006-12-24
3 posts

I accomplished this by using an embedded template.

Freeform template dropdown

<select id="industry" name="industry">
   
{embed="industry_list"}
</select

Embedded page (industry_list)

{exp:query sql="SELECT id, name FROM exp_my_industries ORDER BY name"}
   
<option value="{id}">{name}</option>
{/exp:query} 
 
Posted: 08 August 2007 10:29 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Joined: 2005-08-05
336 posts

ah!  I never think of embedding things.  Thanks for posting that.