Forum OpenACS Q&A: how to call a tcl function in an adp file.

I want to have a random picture from my phto-album package.

I've found a tcl function from https://openacs.org/forums/message-view?message_id=22024 that will get me that random picture. This function is in server0/tcl.

now it seems I have to call this function [random_pix] somehow to have my picture included in my index.adp file.

thanks for any help.

Yves.

Collapse
Posted by Jeff Davis on
look at packages/photo-album/www/random-photo.tcl
which does what you want and has instructions on how
to add it to other pages.
Collapse
Posted by Yves Goldberg on
thank you very much Jeff. I succeeded to add a rdm pic to  my main page.