Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Multiple categories, Add.pm, Modify.pm : major problems

Quote Reply
Multiple categories, Add.pm, Modify.pm : major problems
Hello ...

We are having extreme difficulty with our public add and modify forms.
GT staff: can you help out here please? Everything is explained below ...

----------------------------------------------------------------
Background:

All our links are in multiple categories.
The editors -- not the users -- select the categories, based on a thorough review of the link.
The categories are not an afterthought for the link -- they are core information, just like the description.
Failure to specify a category is not an error for us. In the Add form it is irrelevant, but in the Modify form it is a requirement that users cannot mess with the category set, which represent significant editorial work.
db_gen_category_list must be set to Yes -- because it determines the display of categories in the Admin interface

----------------------------------------------------------------
Add.pm

The Problem:
By default, Add.pm requires a category input, something we do not need or want.

The Solution:
Either disable the category input, or pass the current category as a hidden input (as happens when db_gen_category_list is set to No).
Our temporary workaround is an edit at line 191 of Add.pm: replace if ($CFG->{db_gen_category_list}) with if (0). This has the same effect as db_gen_category_list = No. The editors can then treat the category as a suggestion.


----------------------------------------------------------------
Modify.pm

The Problem:
This is a major bug -- the modify form can have only one input field for CatLinks.CategoryID, so when the user submits it, essential information about the link (all the other categories) is destroyed. Effectively, Modify.pm cannot be used as the damage caused is greater than the benefit.

The Solution:
Disable category input completely, so that when Admin or Editors validate the modified link the original CatLinks.CategoryID set remains intact.
We have no workaround.


However, we think this might not be too difficult to fix. All we need to do is circumvent the code in Modify.pm which rejects submissions which do not specify a category. But we can't figure out where it happens.
Subject Author Views Date
Thread Multiple categories, Add.pm, Modify.pm : major problems YoYoYoYo 7650 Jul 23, 2002, 12:09 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7382 Jul 23, 2002, 5:20 AM
Thread Re: [pugdog] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7380 Jul 23, 2002, 6:13 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7352 Jul 23, 2002, 6:22 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7431 Jul 23, 2002, 6:31 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7338 Jul 23, 2002, 9:21 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7293 Jul 23, 2002, 9:23 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7380 Jul 23, 2002, 10:14 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7315 Jul 23, 2002, 10:55 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
humorlinks 7520 Jul 23, 2002, 11:38 AM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7364 Jul 23, 2002, 2:14 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7294 Jul 23, 2002, 2:21 PM
Thread Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7298 Jul 23, 2002, 2:52 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7357 Jul 24, 2002, 12:31 AM
Post Eureka!
YoYoYoYo 7329 Jul 24, 2002, 10:59 PM
Post Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
RWhite 7150 Nov 18, 2002, 10:51 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7370 Jul 23, 2002, 5:44 PM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7210 Aug 10, 2002, 4:28 AM
Post Re: [ridesworld] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7133 Nov 17, 2002, 1:43 PM