Hi Zaphod

> I stumbled upon tw5gray <http://tw5gray.tiddlyspot.com/>, a 2-3 -year-old TW 
> (5.0.5 beta) the other day

5.0.5 is very old by TiddlyWiki standards. There have been a lot of additions 
and modifications to the core since then.

In particular, the “colours” tiddler you encountered appears to offer the same 
functionality as the now built in palette mechanism. Under the Control Panel 
Appearance tab you’ll find a palette tab which allows the current palette to be 
switched and edited.

> 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).
> 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.

Best wishes

Jeremy
> Please tell me that there is a way to 'inject' the background image 
> declaration into either the Stylesheet tiddler, or if worst comes to worst, I 
> can create stylesheet-tagged tiddlers –one for each screenshot that I want to 
> use as a page background– with a link to the external screenshot, as long as 
> they will override whatever background might have been on the page before.
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/44e455b8-e868-42d1-845e-7037391f733c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/44e455b8-e868-42d1-845e-7037391f733c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/8533B5F6-A165-4DF6-AA36-F7AC15211760%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to