Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to set up an electronic journal using ejournal. On the issue page I would like to show the author name in addition to the title, similar to the ikaros journal. I have tried to modify display-issue.inc.php, but I don't know how to access the author name (it does not seem to be listed inn $article. Do you have any suggestions?
thank you.
Comments
Comment #1
romca CreditAttribution: romca commentedThe best way (if you have ejournalauthors module enabled) is probably to edit
template/standard.inc
function theme_ejournal_article_reference:
add this call: ejournalauthors_get_authors_links($journal, $article->nid)
that produces html ouput, you can also want list of authors: ejournalauthors_get_authors($journal, $article->nid)
you can also place the same call in the template (if you have the journal object and nid):
ejournalauthors_get_authors_links($journal, $article->nid);
Comment #2
hdoll CreditAttribution: hdoll commentedThank you for the hint. Somehow the functions don't find any authors. I'll have to keep digging.
Comment #3
romca CreditAttribution: romca commentedtry to see if you pass correct arguments:
print_r($journal);
print_r($article);
Comment #4
romca CreditAttribution: romca commented