Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 12th, 2005, 01:02 AM
jaeSun jaeSun is offline
got Rice?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 448 jaeSun User rank is Private First Class (20 - 50 Reputation Level)jaeSun User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 Days 14 h 10 m 51 sec
Reputation Power: 4
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?

Reply With Quote
  #2  
Old April 12th, 2005, 12:12 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
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.
Comments on this post
jaeSun agrees: now to just figure out how to deal with deleting with multiple categories to delete at the same
time!

Reply With Quote
  #3  
Old April 12th, 2005, 12:35 PM
jaeSun jaeSun is offline
got Rice?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 448 jaeSun User rank is Private First Class (20 - 50 Reputation Level)jaeSun User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 Days 14 h 10 m 51 sec
Reputation Power: 4
heh, thats a good idea..why didnt i think of that! .... thanks!

Reply With Quote
  #4  
Old April 12th, 2005, 10:33 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
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.

Reply With Quote
  #5  
Old April 12th, 2005, 10:36 PM
jaeSun jaeSun is offline
got Rice?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 448 jaeSun User rank is Private First Class (20 - 50 Reputation Level)jaeSun User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 Days 14 h 10 m 51 sec
Reputation Power: 4
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > deleting categories ... best way to handle?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway