Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Parse Textile

#1 2005-10-31 17:13:02

dow
Archived Plugin Author
Registered: 2005-05-08
Posts: 3

Parse Textile

Hi, I’ve got a little problem concerning calling certain cgi-scripts
I need to call a cgi script (it generates pictures) from my posts in textpattern.
when writing
{img src=blah.cgi?somestuff} (Ive changed the tags to brackets to display it right)
I get “somestuff” formated (if there’s special characters in it) – and if I write
.=={img src=blah.cgi?somestuff}== (again, change brackets to tags) I just get it outputted as text.
(Oh, the regular !-way of displaying images doesnt work either since it formats my url)

Now, Im sure there’s some smart solution for this, but instead of learning how to type in textpattern to get it working,
I would much rather make a change in the code (classTextile I guess) saying that

[pattern]MyInfo[pattern]

is parsed by textpattern/textile and output as

{img src=mycgi.cgi?MyInfo} (brackets to tags)

I started looking at classTextile.php, but it looked kinda tricky. Can anyone give me a crash course, or perhaps
tell me where I should be making my changes? (since Im not really sure)
Or, ofcourse, tell me where I can find more info about doing this type of changes!

Sorry for the messy post, but I hope you understand my question
Thank you all
dow
Edit: typo

Last edited by dow (2005-10-31 17:14:25)

Offline

#2 2005-11-02 09:09:51

dow
Archived Plugin Author
Registered: 2005-05-08
Posts: 3

Re: Parse Textile

I made a plugin for this instead. Figured that calling a txp-tag wasnt to much trouble.
The plugin is in use on www.defined.se (dow_formula)

Offline

  1. Index
  2. » Archives
  3. » Parse Textile

Board footer

Powered by FluxBB