Howdy, Stranger!

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

In this Discussion

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.

How can a retrieve the color and icon of a storage locations' storage_location_type?

How can a retrieve the color and icon of a storage_location_type(a list item) for a storage_location.
i.e. In a summery report of a storage location, I would like to display the icon and color of the storage locations' storage_location_type.


  • edited November 2018


    After poking around I came up with this:

    $t_storage_location = new ca_storage_locations($va_storage_children_id);
    //Icon and Color:
    $t_type = $t_storage_location->getTypeInstance();
    $vs_color = null;
    if ($t_type) { $vs_color = trim($t_type->get('color')); }
    if (!$vs_color && $t_type) { $vs_color = trim($t_type->get('color')); }
    if (!$vs_color) { $vs_color = "FFFFFF"; }

    $vs_icon = null;
    if ($t_type) { $vs_icon = $t_type->getMediaTag('icon', 'icon'); }
    $vs_icon = $t_type->getMediaTag('icon', 'icon');
    if ($vs_icon){
    $icon = "



Sign In or Register to comment.