Page 1 of 1

[serendipity_event_freetag] auto-tag is too good

Posted: Fri Mar 04, 2011 11:18 am
by bernd_d
Since a few days i tried to use the auto-tag feature because i want to let tag postings from my iPhone. So far so good, but...

...the auto-tag-feature is searching inside html-keywords.

For example i have added keyword "serendipity" for a serendipity-tag (what else ;) ). Now, if i include a picture into a posting, it always gets this tag, because the word "serendipity" is contained in css-classes and/or file-path.


Could this be changed? For example as an option "ignore words inside html-code".

Re: [serendipity_event_freetag] auto-tag is too good

Posted: Fri Mar 04, 2011 11:25 am
by garvinhicking
Hm...that's bad. It cannot easily be changed, matching text only in a partial scope is quite complicated.

Maybe if the auto-tagging would simply perform a strip_tags() before that, it could help. I've added this to the plugin, I don't really think that automatic keyword tagging should match on HTML tags, so I've not added it as an option...

Regards,
Garvin

Re: [serendipity_event_freetag] auto-tag is too good

Posted: Fri Mar 04, 2011 11:34 am
by bernd_d
garvinhicking wrote:Maybe if the auto-tagging would simply perform a strip_tags() before that, it could help. I've added this to the plugin, I don't really think that automatic keyword tagging should match on HTML tags, so I've not added it as an option...
Thank you :) I'll test it as soon as possible.