stand alone edit form showing up blank
Posted: 20 March 2006 01:02 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

Can someone tell me what I am doing wrong here?  My form is showing up blank - I just went through several old threads about the edit form plugin but can’t figure out what I’m doing wrong.

My url has the entry id:
http://ee.berkshireradio.org/index.php/edit_forms/edit_meeting/39

I’ve tried replacing {segment_3} with {entry_id} with no luck.

Here’s my code:

{exp:weblog:entry_form weblog="{meetings}" return="weblog/edit_entry/{segment_3}"}
{exp
:weblog:entries weblog="{meetings}" status="not closed" show_expired="yes" rdf="off"}

<input type="hidden" name="entry_id" value="{segment_3}" />
<
input type="hidden" name="title" id="title" value="meeting" />
<
input type="hidden" name="url_title" id='url_title' value="meeting" />

<
p>Committee<br />
<
select multiple name="category[]">
{exp:form_helper:categories entry_id="{entry_id}" parent_id="1"}
<option value="{cat_id}" {selected}>{cat_name}</option>
{/exp:form_helper:categories}</p>

<
p>Meeting Date <br />
<
input type="text" name="entry_date" value="{entry_date format='%Y-%m-%d %g:%i %A'}" size="100" maxlength="100" /></p>

<
p>Expiration Date - Please set to the day after your meeting.<br />
<
input type="text" name="expiration_date" value="{exp:form_helper:renew increment='1'}" size="100" maxlength="100" /></p>

<
p>Meeting Location<br />
{exp:form_helper:custom_pulldown entry_id="{entry_id}" field_name="meeting_location"}
<input type="radio" name="{field_id}" value="{value}" {checked}>{value}
{
/exp:form_helper:custom_pulldown}
<input type="hidden" name="{exp:form_helper:field_grabber field_name='meeting_location' which='format'}" value="br" />
</
p>

<
input type="submit" name="submit" value="Submit" />
{/exp:weblog:entries}
{
/exp:weblog:entry_form}

Profile
 
 
Posted: 20 March 2006 02:02 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15867
Joined  06-03-2002

I don’t own the form_helper plugin, so I can’t say whether or not you’re using it right, but there may be some common issues here.  First, does the template have a variable assignment tag for {meetings}?  If not, then it’s not specifying a weblog.  Second, are you logged in to the site (not the CP)?

 Signature 
Profile
MSG
 
 
Posted: 20 March 2006 02:22 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

yes - that was it - thanks - still a little green here, I didn’t even notice that

Profile
 
 
Posted: 20 March 2006 02:27 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15867
Joined  06-03-2002

Hey, it’s not easy being green.

*covers ears to block out the boos*
*ducks flying tomatoes and soup cans*

 Signature 
Profile
MSG
 
 
Posted: 20 March 2006 02:35 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

Haha

actually, the support here is wonderful - so it’s not so bad being green smile

Profile
 
 
Posted: 20 March 2006 04:22 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

I’m back.  I thought it was working because I was at least getting something when I clicked “view template” - though it was a big mess - but I thought I could work with it from there.  It turns out when I view it from the link that specifies the entry ID, I still get nothing.  The stand alone entry form was so easy to create - I didn’t expect to have so much trouble with this!

Once again, my url has the entry id:
http://ee.berkshireradio.org/index.php/edit_forms/edit_meeting/39/

and my code (now with the weblog correctly stated):

{exp:weblog:entry_form weblog="meetings" return="edit_forms/edit_meeting/{segment_3}"}
{exp
:weblog:entries weblog="meetings" status="not closed" show_expired="yes" rdf="off"}

<input type="hidden" name="entry_id" value="{segment_3}" />
<
input type="hidden" name="title" value="{title}" />

<
p>Committee<br />
<
select multiple name="category[]">
{exp:form_helper:categories entry_id="{segment_3}" parent_id="1"}
<option value="{cat_id}" {selected}>{cat_name}</option>
{/exp:form_helper:categories}</p>

<
p>Meeting Date <br />
<
input type="text" name="entry_date" value="{entry_date format='%Y-%m-%d %g:%i %A'}" size="50" maxlength="50" /></p>

<
p>Expiration Date - Please set to the day after your meeting.<br />
<
input type="text" name="expiration_date" value="{exp:form_helper:renew increment='1'}" size="50" maxlength="50" /></p>

<
p>Meeting Location<br />
{exp:form_helper:custom_pulldown entry_id="{segment_3}" field_name="meeting_location"}
<input type="radio" name="{field_id}" value="{value}" {checked}>{value}
{
/exp:form_helper:custom_pulldown}
<input type="hidden" name="{exp:form_helper:field_grabber field_name='meeting_location' which='format'}" value="br" />
</
p>

<
input type="submit" name="submit" value="Submit" />
{/exp:weblog:entries}
{
/exp:weblog:entry_form}

Here’s what I am seeing:
When I click “view rendered template” and no entry ID is provided in the URL, my category select is there but empty, the words “Meeting Date” are missing, and the Meeting Location input (a custom field) is completely missing. When I view it with the above url that has the entry ID provided, I get nothing at all - everything between the entry_form tags is missing.

Thanks again for looking - I’ve spent half my day with this and I really appreciate the help.

Profile
 
 
Posted: 21 March 2006 08:50 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

Would someone be willing to send me a copy of their edit form code?  I’ve run out of ideas for troubleshooting this - maybe if I could look at some working code I could make some sense of it.

Profile
 
 
Posted: 21 March 2006 09:32 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Like Nafai, I don’t actually use this plugin.  Solspace would be the best one to support it, as he wrote it.  And you’ve probably already check out this thread, which is the best one I know of for going into it in a truely tedious degree of depth. 

I can at least take a look at the generated form- but you’ll need to create me an account, as it’s not viewable to non-logged in folks.  But as a third party plugin, it’s not fully supported by EE.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 March 2006 10:02 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

Thanks Robin - I emailed you.  I’ve read that entire thread twice now - looked like perhaps Vik had the same problem but his fix was an updated version of the plugin which I have.  I submitted a plea for help over there.

Profile
 
 
Posted: 21 March 2006 10:12 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Ah- actually, it looks like it was something simple.  I tried just putting the weblog tag out there all on its lonesome, and nothing showed up for it either.  Turns out- at least for the entry I was testing- id 38- the entry date was in the future.  You had the parameter to show expired in there- but not the one to show future entries.  So, added the parameter and looks like the form was being properly filled in.

I didn’t dig deep, so look it over.  But I think it’s working now.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 March 2006 10:18 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

Yes!!  I’m so sorry - I really should have been able to figure that out - there are some tiny funky display things but probably I can work that out.  THANK YOU.

Profile
 
 
Posted: 21 March 2006 10:29 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

No problem- I probably should have thought of it off the bat.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65074 Total Logged-in Users: 23
Total Topics: 82207 Total Anonymous Users: 14
Total Replies: 441811 Total Guests: 188
Total Posts: 524018    
Members ( View Memberlist )
Newest Members:  mackskithbtggAdminempoleongwishPasha MahardikarmarkdurandomcatClutch BearingsAdil