Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Dynamic dropdown

edited December 4 in Installation
I want to create dynamic dropdowns.

My first stage is to get value in one list. How should I make this?

I'm trying this:

<p>^ca_list_items.ListCat</p>

OR

<unit relativeTo="ca_objects_x_vocabulary_terms" delimiter="<br/>"><unit relativeTo="ca_list_items"><l>^ca_list_items.ListCat</l></unit></unit>

OR
$t_list_item = new ca_list_items();

In last option it doesn't show my list "ListCat" and respectives subitems.
I haven´t been able to get the listing yet.

How should I make this?

Comments

  • If I put this, it shows me one dropdown with values corrects. But I want this in array

    $t_list = new ca_lists();
    $vs_set_type_menu = $t_list->getListAsHTMLFormElement('ListCat', 'ListCat', array('id' => 'typeList')).' ';

    Any idea?
  • Try ca_lists::getItemsForList(). As in:

    $t_list = new ca_lists();
    $my_list_array = $t_list-> getItemsForList('ListCat');
Sign In or Register to comment.