Thank You so much for the quick reply, Jeremy :)
On Friday, July 22, 2016 at 6:44:49 AM UTC-4, Jeremy Ruston wrote: > > Hi Zaphod > > This is for a movie database of sorts that I'm working on. Each tiddler is > a different movie, with synopsis, screenshots, posters/dvd covers, etc. > Today I would like to accomplish two things: > > - Have a pre-selected screenshot come up as the background image for > the page whenever the tiddler is opened; > > This is a complicated requirement, and not easy to achieve. There’s > nowhere else in the core or elsewhere that we have a similar technique of > making a global style change in response to a particular tiddler being > opened. > > The approach I would suggest would be to use the current tiddler field of > the $:/HistoryList tiddler to transclude an image tiddler. You’d have to > arrange the titles of the image tiddlers to be related to the titles of the > tiddlers you’re viewing (eg adding `-image` on the end). > I've had a look at the $:/HistoryList tiddler *(and while investigating it I find that the "colours" tiddler from my previous example was a JSON tiddler (hence the quotation-mark formatting)*, but I'm no closer to a solution - I'd need more detailed instruction to implement your suggestion. > - Also have a drop-down list available (perhaps in the SideBar) with > links to external graphics (the pre-selected screenshots from all/most of > the movies, listed as the movie's title) that the user can choose from and > it will immediately become the background image of the page. > > That’s a good deal easier - you can see something very similar in the > Theme Tweaks tab of Control Panel. You can copy the code from there and > just modify the filter of images to limit it to your screenshot tiddlers. > > Okay, now this looks much more do-able (or so I thought...). Just been playing with the *$:/themes/tiddlywiki/vanilla/settings/backgroundimage*, and while it can pick up and display any internal graphics that are stored in base64 format tiddlers within the TW, I need to access external images from the Internet. Once in use, the TW will have well over 1000 tiddlers with heavy use of html (each 'movie' tiddler weighs between 20-50kb), and with screenshots of 20-100kb each (that grow exponentially once converted to base64), it's just not feasible to store them as tiddlers. I have tried directly inserting the image address, using " *[img[ImageAddress]]*", html "*<img src="ImageAddress">*" and also creating a tiddler with any of the above in it and using its title, but none of them seem to work... Help me to understand - What --exactly-- makes the *$:/themes/tiddlywiki/vanilla/settings/backgroundimage* tiddler work like it does, enabling it to globally change the background immediately? And by extension, why can't we use it by setting its value (a link to an external image), just as is done through the ControlPanel section, only from within each 'movie' tiddler when that tiddler is opened? Sorry in advance if my questions sound dense, but I've seen some amazing things accomplished by your wonderful creation, and find it hard to believe that this simple 'feat' is this hard to overcome. --Zaphod -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0eb6255a-18b6-4504-9919-2afeafa5cc79%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

