A small problem
stormsh - June 25, 2008 - 18:15
| Project: | InsertNode |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi. The module is really cool - thanks for making it. I have one tiny problem though: the nodes I insert do not go through their filters.
For example, I have a node that convert all #link# into link. That does not work if I insert that node into another node (I get unfiltered text with #).
I know it may be kinda difficult to fix but I'd appreciate it very much.
Thanks a lot
MK

#1
I had this problem, too.
I decided to create a tpl file for the content type of the node I was trying to insert. In my case, I created a photo gallery that was to be included in any other page on the site. The content type was called "gallery", so I created a tpl called "node-gallery.tpl.php" and then I wrote my loops and HTML.
#2
If the filter is rearranged to make the insertnode filter weighted to -10 (before everything else), then the content should have all other filters run against it as well.
Just make sure that you do not create a loop with the insertion.
I.e. Inserting a node that inserts the calling node!