Hi,
First, thanks for this module that have a nice UI and works pretty fast and good.
However, I encounter problems with signwriter filter system, I think it's a bug as I'm on a fresh drupal install and I followed signwriter advices exactly as the examples.
So, I created a new profile, set up my fond, colors, etc... and this profils have to replace all
in my node body.
Here is the pattern I put in the "Input Filter Pattern : " : /
.*?<\/h3>/s
(So it's a copy/paste of the
example in the field description, juste replaced "1" by "3").
Now, my node body
<h2>My first title</h2>
<h3>My first signwriter title</h3>
<p>My first paragraph.<p>
<p>My second paragraph</p>
<h2>My second title</h2>
<h3>My second signwriter title</h3>
<p>My third paragraph</p>
...
The problem I have is that my first signwriter title is well replaced, but not the others one. Signwriter seems to stop after found the first instance...
Did I miss something, a bad configuration, or it's a true bug ?
Thanks for advices
zmove
Comments
Comment #1
zmove CreditAttribution: zmove commentedI forget to put some code tag which result to an unreadable post, here is the good one : (I putted some * to not parse html tag)
Hi,
First, thanks for this module that have a nice UI and works pretty fast and good.
However, I encounter problems with signwriter filter system, I think it's a bug as I'm on a fresh drupal install and I followed signwriter advices exactly as the examples.
So, I created a new profile, set up my fond, colors, etc... and this profils have to replace all
<*h3*> in my node body.<*/h3*>
Here is the pattern I put in the "Input Filter Pattern : " : /
/<h3.*>.*?<\/h3>/s
(So it's a copy/paste of the <*h1*> example in the field description, juste replaced "1" by "3").
Now, my node body
The problem I have is that my first signwriter title is well replaced, but not the others one. Signwriter seems to stop after found the first instance...
Did I miss something, a bad configuration, or it's a true bug ?
Thanks for advices
zmove
Comment #2
zmove CreditAttribution: zmove commentedHi,
I still don't have the solution, I tried to put the latest 2.x version. But same behavior.
I think it's possible to replace a pattern more than one time in a page, but I still don't know how...
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedHi!
I have the same problem (drupal 6.12, latest stable release of signwriter). Copy/pasted the regex patterns from the examples. Every heading is only being rendered once - the following headings of the same type will be ignored.
Maybe someone can figure out a way to use something like "FlexiFilter"? Unfortunately, I kinda suck at creating regex patterns.. :-P
Otherwise, very nice module. Totally sweet to being finally able to use Univers Bold Condensed for headlines without ugly font downloading tweaks or the like. ;)
Thank you!
Comment #4
selig CreditAttribution: selig commentedOmitting the last "s" in the regexp should do the trick. Probably the example-text in the signwriter-file should be altered:
/<h3.*>.*?<\/h3>/
Comment #5
zmove CreditAttribution: zmove commentedI confirm that removing the "s" do the trick.
It's a very little thing but maybe the description of the field could be changed to explain that thing to regex noob like us.
Comment #6
Agileware CreditAttribution: Agileware commentedAgreed. Changing to UI component.
Comment #7
Agileware CreditAttribution: Agileware commentedComment #8
Agileware CreditAttribution: Agileware commentedCommitted to 6.x-2.x-dev