Hey,
I would like to code what is effectively a list of recently created entities (that depends on the page being viewed) and have it as a content 'block' for panels.
I could do this with views, however, I load other entity types and use their properties in a moderately complex way to make the list more user friendly. (e.g. My entity specifies user ids, so I want to to pull up the user's names and use that in the list item). I can easily create a page callback to do this, but cannot see how to integrate the information into a panels page.
It seems, from my brief research, that making a block is a bad way to do this since I need url arguments, and since my content is not a node, I cannot seem to be able to add it using the add existing node.
Also, incidentally, I should mention that I have another issue in trying to use views to do this in that the relationships button in the add a views window doesn't work and shows a page of code when I click on it.
Just to illustrate what I was trying to say, this is the page callback function. The ladder, ladder_user and ladder_outcomes are each separate entity types.
function ladder_outcome_recent_outcomes_page($ladder) {
if (!module_exists('ladder_user')) {
drupal_set_message('Ladder User module not found, cannot process.');
return;
}
$result = ladder_outcome_recent_outcomes($ladder->lid);