Settings page
neyoung - January 29, 2009 - 04:52
| Project: | Taxonomy Autotagger |
| Version: | 6.x-1.17 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I've got your module installed and it seems to be working just fine. However, when I started to read through your code I noticed the autotag_menu() hook. I looked around and couldn't find a like to the settings page. I tried going to autotag/autocomplete but all I get is blank white page that displays only "[ ]" at the top.
Any idea what is causing this? I could easily have something not setup correctly, but I have no idea what.
Thanks

#1
After a bit of poking around and learning a whole lot more about modules I've created a patch that creates a settings page. It's pretty basic since I have no idea what I'm doing, but it works :) I think I've created the patch correctly (it's my first one), but if not, let me know.
I've added two settings to the page
1. Text box to allow additional fields to be ignored.
2. Text box to disable autotag for specified content types. (In my case I'm using the same vocabulary for multiple content types, but some of them I don't want to use the autotag interface.) If I knew more about php/drupal/modules I would like to replace this text field with checkboxes, similar to admin/content/taxonomy/edit/vocabulary/, but that's a bit above my skill level for now.
Ideally it would be nice to be able to enable/disable autotag for each content type and then be able to specify fields to ignore for each content type separately, similar to http://drupal.org/project/opencalais. It could also be handy to have a global setting for fields to ignore on all content types.
#2
It looks like I've been able to disable the autotag ui for content types, but tags are still automatically added to the node. I'll see if I can get this working.
#3
Ok, I think I've fixed the above bug with the patch. I also added permissions to access the autotag settings page.
#4
Really, stop.