[pmwiki-users] markup parse issue

DaveG pmwiki at solidgone.com
Mon Feb 9 21:05:20 CST 2009


Henrik Bechmann wrote:
> Is there anything I can do to just get
> 
> background-image:url(http://parkcommons.ca/shared/wiki/app/pub/skins/FoldersCMSBase/garden_bg.jpg)
I had this exact problem. I *think* the solution was to define a markup 
using Keep. This is what I used for my case, and might help give you 
some ideas:
Markup('^Country:', 'fulltext',
     '/^Country\\s+([a-zA-Z][a-zA-Z]):(.*?)>><</isme',
     "Keep('<div class=\'country\'
style=\'background-image:url(\"'.\$GLOBALS['PubDirUrl'].'/skins/dropdown/flags/'. 

strtolower($1). '.png\")\'>'. PSS('$2'). '</div>')"
);

  ~ ~ Dave



More information about the pmwiki-users mailing list