Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2004 at 03:10 UTC
Updated:
5 Apr 2009 at 01:36 UTC
I know this has been talked about before with mixed results, but here is a patch that passes node context to filters. I ran into the need to do this when I was converting the glossary module to use nodes instead of taxonomies. The glossary filter is an expensive filter so it needs to be included in the filter cache. In addition I want control of the filter settings per filter format type. It is very silly to recreate the admin screens infrastructure as well as hack the filter into a nodeapi where it only filters nodes. This filter just needs to make sure it is not filtering a node for itself (not linking back to itself because it uses a synonym or the term in it's description).
| Comment | File | Size | Author |
|---|---|---|---|
| filternode.patch | 3.68 KB | ccourtne |
Comments
Comment #1
killes@www.drop.org commentedThe module.inc part of the patch no longer applies.
Comment #2
gordon commented-1 and the patch will not apply anymore.
This path makes the filter system much more node orientated than it should be. Really this should be more generalised to allow it to be used a lot more in other parts of the system.
Comment #3
LAsan commentedStill applies or not?
Comment #4
sunMarking as duplicate of #226963: Context-aware text filters (provide more meta information to the filter system)