<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">hi. i think i'm getting closer, but i still need some help.<br class="Apple-interchange-newline"><span class="Apple-style-span" style="font-size: medium;">i'm trying now to work with MakeLink to convert the Attach: code to the &lt;img&gt; url</span></span></span></span></span></span></div><div><br class="webkit-block-placeholder"></div><div>the example on&nbsp;<a href="http://www.pmwiki.org/wiki/PmWiki/MakeLink">http://www.pmwiki.org/wiki/PmWiki/MakeLink</a> makes it seem like this should be a simple conversion:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Invocation:MakeLink($pagename, "Attach:foo.gif", <em>, </em>, $ImgTagFmt)&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Result:<code>"&lt;img src='.../uploads/foo.gif' alt='' /&gt;"</code></div><div><br></div><div>but in my situation it doesn't seem to work out so happily in the end. on my system, if i do</div><div><br class="webkit-block-placeholder"></div><div><div>MakeLink($pagename, "Attach:testimage.png", null, null, $ImgTagFmt);</div></div><div><br></div><div>the result is:</div><div>&lt;img&nbsp;src='<a href="http://mysite.com/Attach">http://mysite.com/Attach</a>testimage/png'&nbsp;alt='$LinkAlt'&nbsp;title='$LinkAlt'&nbsp;/&gt;</div><div><br></div><div>and if i add the groupname, as in:&nbsp;</div><div><div><div>MakeLink($pagename, "Attach:group/testimage.png", null, null, $ImgTagFmt);</div></div></div><div><br></div><div>... i get nothing</div><div><br></div><div>what's going wrong?</div><div>Thanks,</div><div>Adam</div><div><br></div>
<br><div><div>On 15 Aug 2010, at 8:11 PM, adam overton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hi<br>for the life of me, i can't remember -<br><br>on my page i have a PTV with:<br>(:groupLogo: Attach:{$Group}./myimage.png:)<br><br>in my config, this ptv is being fed to my skin .tmpl (the idea is a logo or image that appears at the top of the page in this group), via:<br><br>$pageLogo = PageTextVar("$group.$DefaultName",'groupLogo');<br><br>however, what is displaying is:<br>"Attach:{$Group}./myimage.png"<br>... rather than the &lt;img src="..." /&gt;<br><br>i've tried converting this to it's proper &lt;img src="..."&gt; code by wrapping it in MarkupToHTML(), but it's not working. it just spits out<br><span class="Apple-tab-span" style="white-space:pre">        </span>Attach:{$Group}./myimage.png &lt;:block&gt;<br><br><br>is there some other function i must wrap it in in order to spit out the &lt;img&gt; code?<br><br>thanks,<br>adam</div></blockquote></div><br></body></html>