Simple Module, Descriptions, and Variable Passing

brainlock

Joined: 2006-01-02
Posts: 4
Posted: Mon, 2006-01-02 19:39

I'm using gallery 2.0.2 and simple module 0.0.2.

I want to create a text field on the upload page that when filled out
will populate the description fields for all uploaded files
when displayed on the edit page...

I've created the text field on SimpleUpload.tpl.

Quote:
<textarea id="description_common" rows="4" cols="50" name="{g->formVar var="my_description"}">Fill in this field with Common Project Data.</textarea>

But I can't figure out how to access this variable on SimpleEdit.tpl
to populate the fields for each file...

Quote:
<textarea id="description_{$item.id}" rows="4" cols="50" name="{g->formVar var="form[items][`$item.id`][description]"}">{g->form_var var="my_description"}</textarea>

Is it a pathing issue, variable syntax, etc?
I've been looking but it's hard to find doco for something so simple...
the coding standards didn't get into it... and i've been staring at
example code for awhile and am just not putting it together...

 
brainlock

Joined: 2006-01-02
Posts: 4
Posted: Mon, 2006-01-02 20:16

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.0-3 apache2handler
Webserver = Apache/2.0.54 (Ubuntu) PHP/4.4.0-3
Database = mysql 4.0.24_Debian-10ubuntu2-log
Toolkits = ArchiveUpload, Exif, Ffmpeg, ImageMagick, NetPBM, Thumbnail, Gd
Operating system = Linux media.xxxxx.net 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
(oops... forgot this bit)

 
brainlock

Joined: 2006-01-02
Posts: 4
Posted: Wed, 2006-01-04 13:22

please someone point me in the right direction, i know i have a lot to learn...
gallery does everything we need, except easing batch add of keywords... which this will fix

i want to pass a long string variable from one template to another...