SelectionTool_configure.dtml 1.69 KB
Newer Older
1 2 3 4 5 6 7 8 9
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<h3>Selection Tool configuration</h3>
<p>
  Selection Tool supports Memcached Tool and Persistent Mapping for its storage.
</p>

<form action="setStorage" method="post">
10 11 12 13
  <h4>
    Storage for logged-in users' Selection objects.
  </h4>
  <select name="storage">
14 15 16 17 18 19 20 21 22
    <dtml-let storage_item_list="getStorageItemList()">
      <dtml-in prefix="store" name="storage_item_list">
        <dtml-let storage="store_item[1]"
                  storage_title="store_item[0]"
                  selected="storage == getStorage() and 'selected' or ''">
          <option value="&dtml-storage;" &dtml-selected;>&dtml-storage_title;</option>
        </dtml-let>
      </dtml-in>
    </dtml-let>
23
  </select>
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  <h4>
    Storage for anonymous users' Selection objects.
  </h4>
  <p>
    You can specify another storage to store unique Selection objects for each anonymous user. If you select nothing here, the same Selection object will be shared for all anonymous users and will be stored in the storage selected above. Using a volatile storage (like memcached) is highly recommended.
  </p>
  <select name="anonymous_storage">
    <option value="">&nbsp;</option>
    <dtml-let storage_item_list="getStorageItemList()">
      <dtml-in prefix="store" name="storage_item_list">
        <dtml-let storage="store_item[1]"
                  storage_title="store_item[0]"
                  selected="storage == getAnonymousStorage() and 'selected' or ''">
          <option value="&dtml-storage;" &dtml-selected;>&dtml-storage_title;</option>
        </dtml-let>
      </dtml-in>
    </dtml-let>
  </select>
  <p>
    <input type="submit" value="Change"/>
  </p>
45 46 47
</form>

<dtml-var manage_page_footer>