Forum OpenACS Q&A: Re: Problems with resoure-list package

Collapse
Posted by Jade Rubick on
Hi Thomas,

it looks like the bug is here:

        ad_form -extend -name add_edit -form \
            [list \
                [list \
                  categories:text(checkbox),multiple \
                      {label "Select: [set type_short_name]"} \
                      {options [list $options]} \
                      {values $categories} \
                      ] \
                ]

Perhaps the behavior of ad_form has changed in 5.0 (I'm coding on 4.6.3). It looks like the [set type_short_name] section is not working.

This bug does not show up in 4.6.3, but I've changed it to as follows:

        set select_name "Select: $type_short_name"

        ad_form -extend -name add_edit -form \
            [list \
                [list \
                  categories:text(checkbox),multiple \
                      {label $select_name} \
                      {options [list $options]} \
                      {values $categories} \
                      ] \
                ]

I'm not sure that will work.

The resource-list package is in /contrib partially because the admin interface isn't very developed at all. My recommendation, actually, is to put the types in yourself (I put in two: Population and Location). Then the UI works alright.

I also added in a .vuh for resource list, so that links are picked up better by Google (hopefully).

I'm checking in the code soon.