[pmwiki-users] PTV including directive : (:text: this is my long text, with pictures. (:thumlist:):)

DaveG pmwiki at solidgone.com
Fri Aug 13 22:57:11 CDT 2010

On 8/13/2010 6:42 PM, ABClf wrote:
> In some PTV, (:text: this is my long [[link|text]]:) I see I got trouble
> when I want to include a directive as (:thumblist:) -> because of the :)
> Real example here :
> http://www.languefrancaise.net/Info/2008-10-27-Simonin-dans-les-collections-de-la-BNF :
> part of the text is duplicated ; cause in (:text: my long text:) I
> insert a {$:images} where images:(:thumblist:)
> Is there any trick to solve this (nested ptv?) ?
> I guess I could put the (:thumblist:) directive elsewhere in my
> template, out of the long text PTV, so it isn't very crucial in this
> case, but if there were any easy solution, I would like using it.
If I understand correctly, you could create an additional markup to 
define PTVs. Sample from blogit:

$PageTextVarPatterns['[[#anchor]]'] = '/(\[\[#blogit_(\w[_-\w]*)\]\](?: 
*\n)?)(.*?)(\[\[#blogit_\2end\]\])/s';  #[1]

That way, it doesn't get mixed up with the embedded markup.

  ~ ~ Dave

More information about the pmwiki-users mailing list