Hello. I created a new content type, with several textareas and found that the "Mark terms in content" works only in the field "Body" created by default. Is there any way to get recognized Glossary terms and check for any field with a textarea created in CCK?

Thanks

CommentFileSizeAuthor
#5 Proof_d6.PNG5.55 KBmarty2081
#4 Proof.PNG6.73 KBmarty2081

Comments

marty2081’s picture

Hi,

The marking of terms is implemented with a content filter. You have to enable the content filter on each input format in which you want terms to be marked.

Some thing you might want to check:

  • What input format did you use for the other textareas?
  • Is the Lexicon filter enabled for that input formats?
  • Are there other filters enabled for that input format after the Lexicon filter that might strip out the markings (like an HTML filter that does not allow certain tags that are used by the Lexicon filter)?
marty2081’s picture

Status: Active » Postponed (maintainer needs more info)
qahuama’s picture

Hi Marty2081.

I have enabled the lexicon filter in all input formats of the website: filtered html, full html, php code. For the textareas I use any of the input formats, but that does not seem to be the problem.

On the page where you set the order of the filters I've tried both putting it first as last, is now last.

I´ll tell U what I do:

- I edit the content type "page".
- I add a new field of type text, a textarea (I mark the option "Processing text: Filtered text (users select input format)").
- I go to the configuration of CKEditor, and i add the new field i´ve created, so CKEditor shows in the textarea
- I create a new page, now I´ve got the "body textarea" and "body textarea 2" (the textarea I added to the content type). Both textareas have CKEditor actived, both have the input format in "full html" (for example).
- Then I insert some terms of my glossary in both textareas. I save the page. When I see the page, all the terms i´ve entered in "body textarea" are marked, but the same terms i´ve entered in "body textarea 2" are not marked.

I don´t know if this only happens to me, can anyone corfirm this problem?

Thanks

marty2081’s picture

StatusFileSize
new6.73 KB

Ignore this reply. I thought you were using the 7.x version of the Lexicon, but I just saw you are using the 6.x version...

marty2081’s picture

StatusFileSize
new5.55 KB

OK, I've now also tried this in the D6 version :). I've done exactly what you described, but I have no problem. See the attachment for proof.

  • Are you sure there are no other filters that interfere with the Lexicon filter?
  • Have you flushed the caches?

My "test" was on a clean D6 install with only CCK, Text field and Lexicon enabled. Maybe there are other modules that you use that are causing some interference?

qahuama’s picture

ok, I'll see if there is a filter or module that may be interfering with Lexicon. I will post here what I discover. Thanks, sorry for the inconvenience.

marty2081’s picture

No problem. It might be that there is an error in the Lexicon that only shows up in very specific Drupal installations and combinations of filters and modules. Let me know if you find out more.

qahuama’s picture

Hello. I'm still a little lost with this problem. I tried to disable the modules that may relate to this but does not seem to cause the problem.

What I have found so far is that if I add terms to the "Body Textarea 2", then I save the page, then i seee the page and I get the terms (usually). But if i flush caches tables, the terms no longer appear marked.

Keep you informed, thanks

marty2081’s picture

Assigned: Unassigned » marty2081
Status: Postponed (maintainer needs more info) » Fixed

I stumbled upon the same problem that allowed me to debug better. It turns out there was a mistake in the code. It is fixed and in release 6.x-1.4. I'm sorry I did not see this earlier.

qahuama’s picture

ok, Marty2081, I had forgotten about it because had failed to find any solution.

Thank you very much

Status: Fixed » Closed (fixed)
Issue tags: -mark terms in content

Automatically closed -- issue fixed for 2 weeks with no activity.