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 7764 Jul 23, 2002, 12:09 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7490 Jul 23, 2002, 5:20 AM
Thread Re: [pugdog] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7489 Jul 23, 2002, 6:13 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7461 Jul 23, 2002, 6:22 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7540 Jul 23, 2002, 6:31 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7447 Jul 23, 2002, 9:21 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7401 Jul 23, 2002, 9:23 AM
Thread Re: [rayhne] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7488 Jul 23, 2002, 10:14 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
rayhne 7424 Jul 23, 2002, 10:55 AM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
humorlinks 7629 Jul 23, 2002, 11:38 AM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7473 Jul 23, 2002, 2:14 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7405 Jul 23, 2002, 2:21 PM
Thread Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
YoYoYoYo 7407 Jul 23, 2002, 2:52 PM
Thread Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
yogi 7465 Jul 24, 2002, 12:31 AM
Post Eureka!
YoYoYoYo 7438 Jul 24, 2002, 10:59 PM
Post Re: [yogi] Multiple categories, Add.pm, Modify.pm : major problems
RWhite 7259 Nov 18, 2002, 10:51 AM
Post Re: [YoYoYoYo] Multiple categories, Add.pm, Modify.pm : major problems
pugdog 7479 Jul 23, 2002, 5:44 PM
Thread Re: [humorlinks] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7320 Aug 10, 2002, 4:28 AM
Post Re: [ridesworld] Multiple categories, Add.pm, Modify.pm : major problems
ridesworld 7242 Nov 17, 2002, 1:43 PM