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

neyoung - January 31, 2009 - 20:53
Title:Settings doesn't display» Settings page
Category:support request» feature request
Status:active» needs review

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.

AttachmentSize
autotag.patch 3.14 KB

#2

neyoung - January 31, 2009 - 21:06
Status:needs review» needs work

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

neyoung - January 31, 2009 - 21:54
Status:needs work» needs review

Ok, I think I've fixed the above bug with the patch. I also added permissions to access the autotag settings page.

AttachmentSize
autotag2.patch 4.44 KB

#4

sdrycroft - February 4, 2009 - 00:56
Status:needs review» closed

Really, stop.

 
 

Drupal is a registered trademark of Dries Buytaert.