If I understand you correctly, the following ugly hack with the php customfield should work:
$node=node_load($data->nid);
foreach ($node->items as $item) {
$user=user_load($item[last_patron_uid]);
print $user->name;
}
I'm interested in improving Views support but I'm not sure yet how to best do this. One option is to just provide specific fields like last user to check out, last transaction date, etc for a node.
The ideal solution would probably be an item specific view type, which would make the relationship between nodes and items in regards to transactions better.
Any thoughts on what is needed in practice by others?
That works beautifully. Thank you, thank you, thank you.
Can you work the same magic to get the checkout message to display too? I am not a coder and I know this one is harder.
Comments
Comment #1
jastraat commentedNo I'm afraid not. Originally, patrons were not users, and I didn't have time to rewrite and add new view plugins when the new version was released.
Comment #2
grahlIf I understand you correctly, the following ugly hack with the php customfield should work:
I'm interested in improving Views support but I'm not sure yet how to best do this. One option is to just provide specific fields like last user to check out, last transaction date, etc for a node.
The ideal solution would probably be an item specific view type, which would make the relationship between nodes and items in regards to transactions better.
Any thoughts on what is needed in practice by others?
Comment #3
topdillon commentedThat works beautifully. Thank you, thank you, thank you.
Can you work the same magic to get the checkout message to display too? I am not a coder and I know this one is harder.
Comment #4
grahl