2 of 2
2
Content Views Change After Using Form Helper to edit content
Posted: 11 April 2008 06:13 AM   [ Ignore ]   [ # 16 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Latest development:

If I place the code inside the comment area I get the code errors noted before:

{{NOCACHE_WEBLOG_FORM weblog="work_order" return="orders/comments/{url_title}" }}
{categories}{
/categories}
Order Status
:

{
} {
/NOCACHE_FORM}

If I place it outside the comment area is shows up properly and the status changes, but any comments are not captured. So I need to figure out where to place the code so there are no errors, the status changes and the comments are captured when I hit the submit button.

Looking forward to your response.

Forrest

Profile
 
 
Posted: 11 April 2008 06:18 AM   [ Ignore ]   [ # 17 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Forrest,

You cannot place that code in the Comments loop…

Secondly, in your template, you have not nearly provided enough information for your form. You need to put ALL the information back into the form, as per my original example.
The ONLY things you can pick and choose to add or remove from the Edit form are CUSTOM FIELDS. wink

Give that a whirl and let me know how it goes wink

 Signature 
Profile
 
 
Posted: 11 April 2008 06:21 AM   [ Ignore ]   [ # 18 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Welcome back. I took the code out of the comments loop and have all the elements in there so things show up properly. My problem now is that status changes but the comments are not captured.

Forrest

Profile
 
 
Posted: 11 April 2008 06:35 AM   [ Ignore ]   [ # 19 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Now the comments are being captured but the status is not changing. I have a attached the comments template, which holds the key to this mystery.

Thanks,

Forrest

File Attachments
orders_comments.html.zip  (File Size: 3KB - Downloads: 48)
Profile
 
 
Posted: 11 April 2008 06:54 AM   [ Ignore ]   [ # 20 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Forrest, the comments loop needs be within the weblog:entries loop.
I’ve also fixed a couple improper commenting on your template.

I’ve adjusted your status menu from {checked} to {selected}
I’ve also extended the weblog:entries loop to cover the Entry Form so you don’t have an entra weblog:entries loop running that doesn’t need to be wink

See if that makes any difference…

File Attachments
fanderson.zip  (File Size: 2KB - Downloads: 46)
 Signature 
Profile
 
 
Posted: 11 April 2008 07:00 AM   [ Ignore ]   [ # 21 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Pie Man,

The comments stick but alas, the status, which does reflect the current status does not change after submit.

Thanks for reviewing the code there.

It is almost like the comments and the status are running on separate submit button loyalty.

Profile
 
 
Posted: 11 April 2008 07:09 AM   [ Ignore ]   [ # 22 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Oh.... are you trying to change the status, and submit a comment at the same time?

Not quite possible.

 Signature 
Profile
 
 
Posted: 11 April 2008 07:13 AM   [ Ignore ]   [ # 23 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Bummer! So that means I will have to do it in separate pages? One of comments, one for status?

Forrest

Profile
 
 
Posted: 11 April 2008 07:18 AM   [ Ignore ]   [ # 24 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Correct. wink
You could do 1 of 3 things…

1. Make it a 2-step process… have them change the status, and redirect them to a comment page, then have the comments filled in.
2. Because the Edit part of it is so small - just one line… you could plop it into an iFrame (yes.. I said iFrame… haha). It’d require them to do a submit on the status and then carry on below to the comment form… but you could easilly make it look and feel like it’s part of the same page.
3. You could go all out and Ajax it up, which would even better seemlessly do it… though to the user, it would look just like the 2nd suggestion… I no nothing about Ajax though wink

Good luck wink

 Signature 
Profile
 
 
Posted: 11 April 2008 07:22 AM   [ Ignore ]   [ # 25 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Very well. My fate is sealed. Many thanks for all the help. You have made a huge difference in this process and I really appreciate the extra help.

I am sure I will be back at some point.

Best to you.

Forrest

Profile
 
 
Posted: 11 April 2008 08:36 AM   [ Ignore ]   [ # 26 ]
Member
RankRankRank
Total Posts:  98
Joined  2008-03-04

Happy Ending.

I was able to embed the status change into the body and then have the comments below. It works great.

Thanks.

Forrest

Profile
 
 
Posted: 11 April 2008 08:57 AM   [ Ignore ]   [ # 27 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Great! cheese

 Signature 
Profile
 
 
   
2 of 2
2