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
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

capellic - July 15, 2008 - 18:24

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

Alan D. - August 27, 2008 - 23:31

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!

 
 

Drupal is a registered trademark of Dries Buytaert.