• 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

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

Mike

XenForo developer
Staff member
#2
Possibly via {$resource.customFields.x} but if that's not available in that context, then you would need to modify the code.
 
#3
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";}}"
?