This is not fully tested but should look like this
ShowPicture:{picture |
["@@Presentations.Image(federation.LinkMaker.LinkToImage(",["\"content/upload/images/",
picture,"\""].ToOneString, "))@@"].ToOneString
}
where the picture resides in a directory like
/FlexWiki/content/upload/images (the web app adds the FlexWiki relative
directory)
The second requirement would be satisified by
ShowPicture:{path, picture |
["@@Presentations.Image(federation.LinkMaker.LinkToImage(",["\"",
path, "/", picture,"\""].ToOneString, "))@@"].ToOneString
}
where the path does not include the actual relative directory for FlexWiki
and does not include a trailing '/'
Hope this is what you are looking for
John Davidson
On 10/11/07, Anders Jarl - anja <[EMAIL PROTECTED]> wrote:
>
> That looks really neat John!
>
> I've been wanting a "procedure" for just showing a picture in the Wiki
> and just having to give the name of the picture as a parameter. The
> procedure would assume that it exists in a specific relative location on
> the website. How would a procedure like that look like in WikiTalk?
>
> Something like:
>
> ShowPicture(<name of picture>)
>
> And a second procedure with a relative path given:
>
> ShowPicture(<relative path and name to picture>)
>
> Regards
> Anders
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users