So, after three days of searching the group, using every conceivable search 
term I could think of, pouring over numerous system and shadow tiddlers and 
even a few of the *.js files within TiddlyWiki until my eyes (literally) 
were hurting, I am no closer to finding a solution to my question.

I'm *almost* to the point of giving up on the notion of having the page 
background switch upon opening a tiddler.

Not to beat a dead horse (but I'm going to... :-P ), but it seems to me 
that it should be so simple: when the tiddler is opened, a call is made, 
either through the use of a macro or simply by calling or transcluding 
another tiddler with the URL in it (or even a field within the current 
tiddler whose value is the URL of the image), and passing that value to a 
background: url(blahblahblah); statement which would be injected into 
whatever section/tiddler/whatever that the *$:/ControlPanel/Theme Tweaks* - 
*Page 
background image* references.

I also thought about refreshing of the TW - I know I've seen where *Duarte 
Farrajota Ramos* and *Jed Carty* were hashing out the details of a method 
of having a Random Page Background 
<https://groups.google.com/forum/#!searchin/tiddlywiki/background-image/tiddlywiki/QKBoH-71384/OXBMaPSyMhEJ>
 
on loading (which seems to work very nicely on Mr. Ramos' page, but which I 
cannot figure out how to incorporate myself), but for my purposes I really 
need it to happen on-the-fly and without having to refresh.

What happens when we switch from one *Theme* to another?  Isn't there the 
facility within that process to also change the background image of the 
page?

In This Thread 
<https://groups.google.com/forum/#!searchin/tiddlywiki/transclude$20background/tiddlywiki/YtibRb4cRJI/dHIISQ86Vh0J>,
 
I found:

I have an arbitrary field on several tiddlers, called bgimage. It 
> references a background image.
>
> In ViewTemplate, I have defined a macro (immediately after where 
> frame-classes is defined):
>
>     \define bgstyle()
>     background-image:url(<$
> transclude field='bgimage'/>);
>     \end
>
> If I call <<bgstyle>> (again, in ViewTemplate) as content of my tiddler, 
> it works like I'd expect. It pulls the value from the bgimage field and 
> writes it in.
>
Two problems with the above:

   1. I believe Mr. Maxwell is attempting to set the background of the 
   *tiddler* in this case, and not the *page*, but surely the process would 
   be similar?
   2. I cannot understand the exact layout and workings of the ViewTemplate 
   tiddler to figure out where to place his macro code in order to try this 
   for myself.


And trying to follow up on Jeremy's suggestion that I re-use the code from 
*$:/ControlPanel/Theme 
Tweaks - Page background image*: Apparently there simply is no way of 
inputting an external Internet address into this field - It will *only* 
accept the title of an *image tiddler*...

My head hurts...

--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/7091c43e-aa87-4b07-9aa2-33dc6f371746%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to