Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Question about "textiling" from a plugin.
I’m new to Textpattern, but have found it’s quite an intuitive little CMS. I think it’s going to be the solution to a lot of problems I’ve been trying to solve.
My question is: How do you run the output of a plugin through the Textile formatting?
Offline
#2 2005-06-15 04:26:58
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question about "textiling" from a plugin.
That would greatly depend. Can you explain a little more what you’re trying to do?
Offline
Re: Question about "textiling" from a plugin.
I’ve wrote my first plugin last night. All it does is take the “caption” information from the image upload form and make it accessible as text. It runs HTML fine from it. I just wanted to send it through the textilization process to 1. convert things to nicer punctuations and all and 2. be able to use textile formatting. You know, like… _this_?
Offline
Re: Question about "textiling" from a plugin.
Well, I meant to say _ this _ [but with no spaces]. I thought the double equal signs made Textile not format a phrase. Oops.
Offline
#5 2005-06-15 18:38:23
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question about "textiling" from a plugin.
Textile only works in articles and comments.
Offline
Re: Question about "textiling" from a plugin.
Is there no way to call it through a function? :/
Offline
#7 2005-06-15 21:07:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question about "textiling" from a plugin.
Another ‘duh’ day for me. Sorry.
<pre> <code> include_once $txpcfg[‘txpath’].’/lib/classTextile.php’; $textile = new Textile(); $variable = dumbDown($textile->TextileThis($variable)); </code> </pre>It just dawned on me – I wrote a plugin almost two weeks ago that returns the image description, albeit, not Textile-d (upm_category_image).
I dunno how you want to proceed with that information, though I’d assume you’d still want to make it. If you do, don’t feel like I “mind” or anything. :)
Offline
Re: Question about "textiling" from a plugin.
Thanks for that bit of info. Even though my amibition has gone way beyond the plugin idea, I do plan on using this kind of functionality in other places.
About the plugin, I do a lot of site design for visual artists and there’s a lot of metadata that I’d like to attach [in the DB] to the image. I saw that ezee hacked some custom fields for the “file” format. I’ve been working all afternoon on converting/tweaking that hack for images. I’m just having some problems with getting the variables [really, the just the keys from the $txpac variable] to show up from my script. Where can you post questions about really internal/scripty things? I’m trying to avoid hijacking this thread [which oddly enough I started].
Offline
#9 2005-06-15 21:16:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question about "textiling" from a plugin.
This forum (“plugins”) is the most appropriate place.
Offline
Re: Question about "textiling" from a plugin.
Even if it’s a hack?
Offline
#11 2005-06-15 21:27:16
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Question about "textiling" from a plugin.
A hack… probably “version 1 discussion” then.
Offline
Re: Question about "textiling" from a plugin.
Thank you so much. You’ve really been an awesome help with all my thousands of questions. I promise you, I eventually run out of questions. I’m just a curious guy though.
Offline