|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
deleting categories ... best way to handle?
i have an admin section, and part of it allows the user to create categories (whether for a picture gallery, to links, etc to have them organize their content) ....
i give them the option to delete categories ... my question is, how should i handle it? if the category has links in the category, and they delete the category, it can generate errors, or "lose" stuff also when its still in the db (just not getting printed out because category is gone). so what do you guys do? require them to change all the content under those categories before they can delete? have the info get defaulted to a "non-category" ? delete all the info along with the category? not sure what i want. this is just a basic project for my class, and at the same time, the actual site for a church ... dont think they be the most technically minded, so wondering what your suggestions on what i should do? |
|
#2
|
||||
|
||||
|
Ideally you would give them all of the options you mentioned. When they delete a category, check to see if there is information in other tables related to that category, then ask:
Code:
There is still information related to the category you are trying to delete. What would you like to do with that information? [ ] Move that information to the following category: [ drop down [v]] [ ] Delete associated information. |
|
#3
|
|||
|
|||
|
heh, thats a good idea..why didnt i think of that! .... thanks!
|
|
#4
|
||||
|
||||
|
Multiple categories ??? Just ask the question multiple times for each category the user is trying to delete. However, I really don't recommend this b/c it could become rather confusing for the "average" user.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#5
|
|||
|
|||
|
now you say something. haha! cuz i just finished coding that whole part!
hmmmm .... well, this is for my school class project... (and for a live site).. so for my project, ill keep it to make it look good, and think about what to do after for the actual live site |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > deleting categories ... best way to handle? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|