Multiple Category Groups on SAEF
Posted: 01 June 2007 04:21 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  50
Joined  2007-04-30

Hey there,

I’m trying to use FormHelper to build an edit-in-place type form (as seen in the EE wiki), and everything’s working well, except for my category multi-select box.

I see in the docs that it doesn’t support the hierarchical category structure, but should it be able to display categories from multiple groups?  I have 2 cat groups assigned to this weblog. I’ve removed parent_id="0" from the form helper call, but still only showing the results for one category group…

Any ideas? Tx.

Profile
 
 
Posted: 01 June 2007 10:38 AM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  36
Joined  2005-04-25

ira42, the Form Helper Plugin predates the ability to have multiple category groups.

It would be a great enhancement, though.

Profile
 
 
Posted: 01 June 2007 11:43 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  50
Joined  2007-04-30

Great Sue, thanks for the reply.

I’m really new to EE in general, so excuse the question, but would this (Form Helper) be the only way to have an edit-in-place type form on the front end?  From the EE wiki, I think I’m getting that in the standard SAEF, the ‘E’ is for entry but not edit.

I guess if I dumped the category_menu from the standard SAEF in my form, it will display the categories from both groups, but submit them?  Guh...So close.

Thanks again,

Ira

Profile
 
 
Posted: 02 June 2007 12:08 PM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Thanks, Sue. Ira, generally the form help plugin is the accepted way to build a Stand Alone EDIT Form, yes. Please note that SAEF is generally understood to mean stand-alone EDIT form, and is supported natively by EE.

Would make for a good feature request, I think, but is not currently supported.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 03 September 2007 08:53 PM   [ Ignore ]   [ # 4 ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

I’ve run into this situation, too: multiple category groups in a stand alone edit form.  Form_helper only displays one of the groups.  Can’t think of a workaround offhand.

Profile
 
 
Posted: 04 September 2007 10:53 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

As we get ready to do a revision on that old grandpa of a plugin, Formhelper, are there any other feature requests or bug fixes?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 11 October 2007 06:43 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  4
Joined  2007-07-09

Hello,

Just wondering if you have an estimated date for when the updated version of Form Helper will be ready? Will it include the abilty to handle multiple categories?

thanks in advance,

Chris

Profile
 
 
Posted: 11 October 2007 08:07 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Hi Chris,

It has been quite some time since we updated Form Helper. We’ve gotten rather busy with other software. It will likely be a few more months.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 11 October 2007 08:44 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  4
Joined  2007-07-09

Hi Mitchell,

Thanks for your quick reply. So it’s going to be a while =(

The issue I’m having is the weblog I’m trying to edit has three associated categories. The problem I’ve got is that when I save I can update one category but the other two get erased.

Is there a way of preventing these categories getting erased? I don’t necessarily have to update all the categories so if they could just retain their value it’d be great! I just need to exclude them from the update.

all the best.

Chris

Profile
 
 
Posted: 11 October 2007 08:51 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Chris,

This problem can probably be easily handled.

When you submit an SAEF EE looks for fields with the name category[]

The value of those fields is a category id number. You can submit as many cat id numbers as you like with the form.

So what you want to do is make sure you have those categories captured in fields in the form. The fields can be hidden if you want. All you have to do now is pull the categories you want from the DB. So I’d recommend getting creative there. Maybe the exp:query function would be good.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 11 October 2007 11:57 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  1
Joined  2007-10-11

hello all
will the clima on the earth change fast or slow ? 
greetings for all

Profile
 
 
Posted: 12 October 2007 01:53 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  4
Joined  2007-07-09

Thanks Mitchell. Will have a look into this and let you know how I get on.

@ Roger I think the climate will change a moderate pace.

Profile
 
 
Posted: 12 October 2007 02:57 AM   [ Ignore ]   [ # 12 ]
Newbie
Rank
Total Posts:  4
Joined  2007-07-09

Hi Mitchell,

Just thought I’d let you know that I followed your advice and sorted my issue…

here’s my code:

{exp:query sql="SELECT cat_id FROM exp_category_posts WHERE entry_id = '{entry_id}' "}
<input type="hidden" name="category[]" value="{cat_id}" />
{/exp:query}

Seems to work like a charm =)

many thanks,

Chris

Profile
 
 
   
 
 
     extended characters ››