Hi TwWizards
I am using Eric's SetTiddlerBackground
http://www.tiddlytools.com/#SetTiddlerBackground
for adding background images to individual tiddlers based on a custom
field "image"...
Looks like this in the [[ViewTemplate]] <span macro='tiddler
BackgroundColours with: {{store.getValue(tiddler,"billede")}}'
style='display:none'></span>
and in the [[BackgroundColours]] tiddler: <<tiddler
SetTiddlerBackground with: url("$1") - image>>
In the EditTemplate I choose images from list of images already used
in other tiddlers made available by Eric's ListBoxPlugin
http://www.tiddlytools.com/#ListboxPlugin - like this:
<span class='editor' macro='select imagee rows:1 width:12em
*ImagesInUse image allowBlank allowOther'></span>
Tiddler [[ImagesInUse]] uses ForEachTiddlerPlugin from Abego Software
http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin
to produce the list:
<<forEachTiddler
where
'tiddler.tags.contains("slide") && tiddler.fields["image"]'
sortBy
'tiddler.fields.image.toUpperCase()'
write '""+store.getValue(tiddler,"image")+"\n[img(3em+,)
["+store.getValue(tiddler,"title")+"|"+store.getValue(tiddler,"image")
+"]["+tiddler.title+"]] used in "+tiddler.title+"\n----\n"'
none '"// \//"'
>>
This is works well - except for three minor obstacles:
1) I'm only allowed to use images, which are on the same server as the
TW - It needs local links /directory/images/image.png
Can I override this with imagePathPlugin
http://www.tiddlytools.com/#ImagePathPlugin-
or is there some other way around this?
2) I can't find any way to adjust imagesize to fit the size of the
tiddler - I know I could write it into the StyleSheet tiddler - but
then I loose the dynamic advantage of beeing able to set the
background image on the fly.. based on a custom field
3) My fet produced hr-separated list delivers two lines and a line.
The second line is supposed to provide a tooltip for the selection
(first line) - However I don't get anything from the second line - how
come?
Regards Måns Mårtensson
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.