Question
Hi,
I'm using twiki cairo with pattern skin. One of my user want to do a dynamic page layout.
He has ~200 gifs (600x600 pixels) that he wants to display in a two-column format:
- first left colummn (33%): a clickable list of the 200 gifs name, author, and other short text info.
- second right column (66%): the currently-clicked picture displayed.
He knows how to do that with frames, but I'm dragging him to use Twiki, and I don't know how to do that kind of layout inside a twiki page.
Note that I don't want to change the skin. it's just the inside of one page where I want some dynamic content.
Hope I'm clear and somebody can help me. Thanks,
Environment
--
GillesEricDescamps - 11 Nov 2004
Answer
As for the layout you can use an HTML table. If you can justify a roundtrip to the server you can use URL params to load the picture, as in:
|
|
Show picture here. Simulating URL:
https://www.twiki.org/p/pub/Support/HowToDynamicLayoutPage/
|
You can use a conditional
$IF() SpreadSheetPlugin formula to suppress the image if the pic parameter is empty (initial state.)
If you do not want the roundtrip you can use DHTML and JavaScript to display the preloaded images dynamically.
--
PeterThoeny - 11 Jan 2005
I found another way to do it:
Would you rather display
--
GillesEricDescamps - 18 Jan 2004
That's a pretty neat trick Gilles! I like the way it refreshes image without having to refresh the whole page.
--
LynnwoodBrown - 19 Jan 2005