<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
&gt;&gt;I've been thinking that perhaps we should define ":url(...)" as
a lazy form of [=...=]<br>
<br>
That would be helpful (though somewhat specialized from your point of
view I imagine).<br>
<br>
In the meantime I've remembered my workaround (from about a year ago):<br>
<br>
$FarmPubDirUrl = '/shared/wiki/app/pub';<br>
$PubDirUrl = '/wiki/pub'; #prevent unwanted conversion to full url in
style url(.. strings<br>
#$FarmPubDirUrl =
$UrlScheme.'://'.$_SERVER['HTTP_HOST'].'/shared/wiki/app/pub';<br>
#$PubDirUrl = $UrlScheme.'://'.$_SERVER['HTTP_HOST'].'/wiki/pub';<br>
<br>
IOW if I use relative directory addressing for PubDirUrl and
FarmPubDirUrl (from which SkinDirUrl is derived) then the url(...
substitution takes place correctly. I presume presence of the
$UrlScheme is triggering the image element string substitution. However
would this use of relative addressing be a problem for <a class="moz-txt-link-freetext" href="https://">https://</a> sites?<br>
<br>
Thanks,<br>
<br>
- Henrik<br>
<br>
(Incidentally /shared/wiki/ is a symlink into the shared farm
environment)<br>
<br>
<br>
Patrick R. Michaud wrote:
<blockquote cite="mid:20090210163357.GH24998@pmichaud.com" type="cite">
  <pre wrap="">On Mon, Feb 09, 2009 at 08:09:04PM -0500, Henrik Bechmann wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">All,

I have the following markup:

(:div2 class="header-content" 
style="height:84px;background-image:url({$SkinDirUrl}/garden_bg.jpg);":)

(I've added background-image to the $WikiStyleCSS[] array)

But PmWiki is parsing the image fragment as an element, and creates an 
embedded image element thus:

background-image:url(&lt;img 
src='<a class="moz-txt-link-freetext" href="http://parkcommons.ca/shared/wiki/app/pub/skins/FoldersCMSBase/garden_bg.jpg">http://parkcommons.ca/shared/wiki/app/pub/skins/FoldersCMSBase/garden_bg.jpg</a>' 
alt='' title='' /&gt;)

...which of course is a css error.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I've been thinking that perhaps we should define ":url(...)"
as a lazy form of [=...=] that protects its contents from
being treated as a link.  Then the above would work.

Pm


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Henrik Bechmann
bechmann.ca
</pre>
</body>
</html>