1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RM 1.1 Resource Fields outside resource_description page

Discussion in 'Resource Manager Support' started by KiF, Nov 22, 2013.

  1. KiF

    KiF Member

    I'd want to use values of Resource Fields outside resource_description page (in resource_index page) via template modification.
    Is it possible?
     
  2. Mike

    Mike XenForo Developer Staff Member

    Possibly via {$resource.customFields.x} but if that's not available in that context, then you would need to modify the code.
     
  3. KiF

    KiF Member

    In resource_description page
    PHP:
    ["customFields"] => array(2) {
    [
    "test1"] => string(3"111"
    ["test2"] => string(3"222"
    }
    In resource_view page
    PHP:
    ["customFields"] => array(7) {
        [
    "aim"] => string(0""
        
    ["icq"] => string(0""
        
    ["yahoo"] => string(0""
        
    ["skype"] => string(0""
        
    ["gtalk"] => string(0""
        
    ["facebook"] => string(0""
        
    ["twitter"] => string(0""
      
    }
    So I can use {$resource.customFields.x} as resource fields only in resource_description page.
    Is there a simple way to get values of resources' fields from
    PHP:
    ["custom_resource_fields"] => string(50"a:2:{s:5:"test1";s:3:"111";s:5:"test2";s:3:"222";}"
    or
    PHP:
    ["field_cache"] => string(78"a:1:{s:10:"above_info";a:2:{s:5:"test1";s:5:"test1";s:5:"test2";s:5:"test2";}}"
    ?
     

Share This Page