Hi Dave, <div><br></div><div>In fact, I found another solution : I write my (:thumblist quiet=3:) directive outside the (:ptv:my text:) because it is more efficient. No need to say, for every page, if there is an image to print or not and no need to wirte a new markup.</div>

<div><br></div><div>This said, thank your for your help. I didn&#39;t know one can change the format how PTV are declared.</div><div>Could you give me some light about your suggestion ? That may help for another time.<br>

<div><br></div><div>instead of :</div><div>(:text:mytext with {$:image}:) // where image:(:thumblist:), (:y:xxx:) broken by :)</div><div>have (for example) :</div><div>&lt;:text:mytext with {$:image}:&gt; // where image:(:thumblist:), &lt;:y:xxx:&gt; not broken by :)</div>

<div><br></div><div>Isn&#39;t it ?</div><div><br></div><div>If so, what would be the new requested markup (to get &lt;:y:xxx:&gt; ? </div><div>Original markup is (as seen in Mailing List) :<br>(:var:...:)&#39; =&gt; &#39;/(\\(: *(\\w[-\\w]*) *:(?!\\))\\s?)(.*?)(:\\))/s&#39;<br>

Should I translate in :<br>&lt;:var:...:&gt;&#39; =&gt; &#39;/(\\&lt;: *(\\w[-\\w]*) *:(?!\\))\\s?)(.*?)(:\\&gt;)/s&#39;<br>?<br>Then, in config, write : <br>$PageTextVarPatterns[&#39;&lt;:var:...:&gt;&#39;] = &#39;/(\\&lt;: *(\\w[-\\w]*) *:(?!\\))\\s?)(.*?)(:\\&gt;)/s&#39;;  #[1]<br>

<div><span class="Apple-style-span" style="font-family: fixed-width, monospace; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: fixed-width, monospace; font-size: 12px; ">Thank you.</span></div>

<div><br></div><div><br></div><div><div class="gmail_quote">2010/8/14 DaveG <span dir="ltr">&lt;<a href="mailto:pmwiki@solidgone.com">pmwiki@solidgone.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
On 8/13/2010 6:42 PM, ABClf wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In some PTV, (:text: this is my long [[link|text]]:) I see I got trouble<br>
when I want to include a directive as (:thumblist:) -&gt; because of the :)<br>
Real example here :<br>
<a href="http://www.languefrancaise.net/Info/2008-10-27-Simonin-dans-les-collections-de-la-BNF" target="_blank">http://www.languefrancaise.net/Info/2008-10-27-Simonin-dans-les-collections-de-la-BNF</a> :<br>
part of the text is duplicated ; cause in (:text: my long text:) I<br>
insert a {$:images} where images:(:thumblist:)<br>
<br>
Is there any trick to solve this (nested ptv?) ?<br>
<br>
I guess I could put the (:thumblist:) directive elsewhere in my<br>
template, out of the long text PTV, so it isn&#39;t very crucial in this<br>
case, but if there were any easy solution, I would like using it.<br>
</blockquote></div>
If I understand correctly, you could create an additional markup to define PTVs. Sample from blogit:<br>
<br>
$PageTextVarPatterns[&#39;[[#anchor]]&#39;] = &#39;/(\[\[#blogit_(\w[_-\w]*)\]\](?: *\n)?)(.*?)(\[\[#blogit_\2end\]\])/s&#39;;  #[1]<br>
<br>
That way, it doesn&#39;t get mixed up with the embedded markup.<br>
<br>
<br>
 ~ ~ Dave<br>
</blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------<br>| A | de la langue française<br>| B | <a href="http://www.languefrancaise.net/">http://www.languefrancaise.net/</a><br>| C | <a href="mailto:languefrancaise@gmail.com">languefrancaise@gmail.com</a><br>

---------------------------------------<br>
</div></div></div>