Hello again!
A lot of spamming to the list today. I hope you don't mind. :)
Anyway. I was thinking, since there are probably more than just me that are
creating libraries with functions that is supposed to help the users to do more
complex tasks with the Wiki, why not beeing able to help the user with what
library functions that exist and aid them by writing a template text to be able
to call the library function.
An example. I have a function "ShowImage" that exist in the Main.Library topic.
The function looks like this:
ShowImage:{filename |
[
"@@Presentations.Image(federation.LinkMaker.LinkToImage("
,"\"",
federation.GetTopicInfo("Main.Library").GetProperty("ImageLink"), filename, "\""
,"))@@"
].ToOneString
}
ImageLink:content/upload/doc/
The function only takes a filename as a parameter and shows the image that is
supposed to exist in the "ImageLink" directory. Pretty simple.
But when I want to use this function I will need to remember what to write to
be able to call it correctly:
@@federation.GetTopic("Main.Library").ShowImage("<Filename>")@@
What I would like to have when I edit any Wiki page is a way to give the user
the possibility to insert the text you can see on the bold row above. There
could be a drop-down combobox or something where the user could see a list of
all available functions in the library.
He can then select the function "ShowImage" from the combobox and push the
"Insert" button and then the text would be automatically inserted and the only
thing that is left to do is to replace the <> tags with the correct
information. In this example you only need to replace the <Filename>.
Today I have to manoever from the Wiki page I want to edit, to a page where I
have explained what you need to write as a user, to copy the correct text and
then go back to the topic to change and insert it there. Would have been nice
to get some aid here.
This is kind of like the help with uploading an attachment and showing the
attachment in the Wiki.
Any comments?
Regards
Anders
This email has been scanned by the DefenderSoft Email Threat Protection.
For more information please visit www.emailthreatcenter.com<<winmail.dat>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Flexwiki-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flexwiki-users
