Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Textile problem with phrase attributes
I was testing Textile’s possibilities inside my txp 4.0.3 installation and just played with the classTextile.php later.
It worked almost as it should, but did not encode the phrase attributes
For example in this text: <pre>It goes like this, %{color:red}the fourth the fifth%</pre>
Textile made the span tag without red styling. The curly brackets and its content was left in the text.
Without this: <pre>It goes like this, <span style=“color:red”>the fourth the fifth</span></pre>
it made: <pre>It goes like this, <span>{color:red}the fourth the fifth</span></pre>
The example text is located in the original classTextile.php’s header to serve as a usage example.
Same happened when tried to assign a class to a span using parentheses: the span was OK, but the class was left inside the text in parentheses.
To tell the truth the styling and class-appliing worked right in block context.
What is wrong, can you tell me?
Thxalot: teamtom
Offline
Re: Textile problem with phrase attributes
I replaced the original 4.0.3 classTextile.php
$HeadURL: http://svn.textpattern.com/development/4.0/textpattern/lib/classTextile.php $
$LastChangedRevision: 1141 $
with this (found with the help of Google)
http://svn.textpattern.com/releases/4.0.2/source/textpattern/lib/classTextile.php
and tada! phrase attributes or phrase modifiers seems works!
is this 4.0.2 version an obsolete file or what??
what is the difference between the wrong 4.0.3 and the good 4.0.2 version?
of course i see many differences in the php code, but the true understanding of the code is far beyond my coding experience.
Please, help!
thx: teamtom
Offline
#3 2006-06-24 18:23:23
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile problem with phrase attributes
4.0.3 is the latest stable version of the 4.0 branch. The latest stable version of a branch is always the best to use, as it adds news features and bug fixes, such as the one here.
Offline
Re: Textile problem with phrase attributes
Mary, OK, theoretically and practically you are right.
But I would like to prove that something strange happens
please click this
I include the 4.0.2 or the 4.0.3 version of classTextile.php, when you click a button, and use that version to textile the text
I do not understand what I see.
Offline
#5 2006-06-24 20:56:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile problem with phrase attributes
<notextile>*(bold)consectetuer*</notextile>Is not supposed to work. I don’t know why the spans stopped working.
Offline
#6 2006-06-24 22:27:48
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textile problem with phrase attributes
There was a thread about this a while ago. Based on that thread I replaced my classTextile.php with the one from r1210 and that fixed the problem.
Offline
#7 2006-06-24 23:49:34
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textile problem with phrase attributes
Thanks, Els.
Offline
Re: Textile problem with phrase attributes
Thanx both of you!
Offline
Pages: 1