How to avoid tag deletion? 
Posted: 22 April 2008 04:38 AM   [ Ignore ]
Newbie
Rank
Total Posts:  23
Joined  2007-01-16

My problem is a little bit special:

I’m importing news from third parties (via the feedgrab plugin) and then I’m tagging the new entries using the tag module and an own PHP script.

After some time I delete the news. But I’d like to leave the tags in the exp_tag_tags table (because my script needs this entries for the auto tagging).

What would be the easiest way to avoid the deletion process if a tag has no related entries?

Thank you very much,
MISC

Profile
 
 
Posted: 22 April 2008 07:28 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Misc,

I’m not quite sure what you’re referring to…
Are you saying you’d like to stop the Tags from being removed from the database when associated entries are deleted (in the case that a Tag was only assigned to one entry, and it was deleted)? smile

If so, the only real workaround would be to have a Master Entry (I know, it starts to get sloppy here rasberry ) and assign it ALL the Tags in your database periodically. Just set the entry to closed or whatever necessary to keep it in the closet LOL

 Signature 
Profile
 
 
Posted: 22 April 2008 07:45 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  23
Joined  2007-01-16

To create a master entry is a very good idea.

Thank you very much,
MISC

Profile