[pmwiki-users] Preventing a URL being converted to an IMG tag

DaveG pmwiki at solidgone.com
Tue Nov 6 18:23:48 CST 2007


I'm trying to create a div with an image background inside a wiki page:

    (:div id="test" 
style="background-image:url({$SkinDirUrl}/images/spring/header_bg.jpg);":)
    (:divend:)

The problem is that $SkinDirUrl is being interpreted by PmWiki as an 
image, and is converted to:
    <div id="test" style="background-image:url(<img 
src='INTERPRETED_PATH/images/header_bg.jpg' alt='' title='' />);" >
    </div>

I've tried using [={$SkinDirUrl}=], but that obviously prevents PmWiki 
interpreting the variable.

Is there anyway to achieve this?


  ~ ~ David



More information about the pmwiki-users mailing list