I'm in the strategy phase of this mod -- perhaps someone can give me some advice here.
I have a data base with many categories. People are allowed to post a link to multiple categories. I need a way to allow link owners to classify a link as a "featured" link in one or more of the categories that they put the link in.
For example: say a user adds a link in the following categories:
home/cars/case_studies
home/trains/resources
home/trains/case_studies
home/planes/resources
home/planes/case_studies
and they want to classify the link as featured on
home/trainsbut not
(or any combination there of).
The only way can think of doing this is to add a column to the links database called "featuredIn." Then create a custom select box global pulling from the category list that allows users to select the category(s) they want to "feature" the link in. (I can limit the categories they can select from using a AllowFeatured -yes/no select box in the category database).
The datafield featuredIn in the links db will consist of array of category ids.
Does this sound like a logical plan? Can you think of an easier method?
I think I can handle all of that for the public/User view...but where I get really stumped is how to implement this into the admin view. It seems the admin forms are built dynamically based on preset rules. Would it be possible to add a global into admin form to create a custom field as described above? This is where my brain hits the wall.
Any help or suggestions would be so awesome.
Many thanks,
mike
I have a data base with many categories. People are allowed to post a link to multiple categories. I need a way to allow link owners to classify a link as a "featured" link in one or more of the categories that they put the link in.
For example: say a user adds a link in the following categories:
Code:
home/cars/resources home/cars/case_studies
home/trains/resources
home/trains/case_studies
home/planes/resources
home/planes/case_studies
and they want to classify the link as featured on
Code:
home/cars home/trains
Code:
home/planes(or any combination there of).
The only way can think of doing this is to add a column to the links database called "featuredIn." Then create a custom select box global pulling from the category list that allows users to select the category(s) they want to "feature" the link in. (I can limit the categories they can select from using a AllowFeatured -yes/no select box in the category database).
The datafield featuredIn in the links db will consist of array of category ids.
Does this sound like a logical plan? Can you think of an easier method?
I think I can handle all of that for the public/User view...but where I get really stumped is how to implement this into the admin view. It seems the admin forms are built dynamically based on preset rules. Would it be possible to add a global into admin form to create a custom field as described above? This is where my brain hits the wall.
Any help or suggestions would be so awesome.
Many thanks,
mike