By alladjex on
Hello.
I would like to do the following. I write a story/page using HTML. BUt in the text I would like to use my own "tags" which should be substituted before sending to a browser. E.g.
I write:
[[storage]]/IMAGES/img.jpg
but when I will view a page there should be
http://www.storage.com/IMAGES/img.jpg
(I use it for the external links, but there is a chance that I will need to move the storage and I won't rewrite all stories/pages by hand.)
By the way, there are other occasions where I would like to parse a text of story before presenting to the viewer.
Alladjex
P.S. I'm complet newbie to Drupal
Comments
Try adapting an existing
Try adapting an existing module's (such as URLFilter) implementation of hook_filter (http://api.drupal.org/api/4.7/function/hook_filter) in your own custom module for you website.
Suuch Solutions supports The GhanaThink Foundation
Thanks. I tried urlfilter
Thanks.
I tried urlfilter (not rewriting yet) but the problem is that I need to run filter not when I'm composing story but when I view it. Urlfilter is filter which works only as a part of Input Format. But I don't want anything which run only once as a part of Input Format.
Do you know the solution?
Great! I found the I
Great!
I found the I misunderstood how the Input Formats Works. I thought that it works only once when the page is created. And due to the previous I found that I can change it later with the complete reformat of page ;)
Cool. Thanks. I think the reprograming of urlfilter is everything I need.