Displaying author name in issue listing

hdoll - November 6, 2009 - 13:06
Project:E-Journal
Version:6.x-1.0-rc3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

romca - November 6, 2009 - 15:08

The 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):

<?php
ejournalauthors_get_authors_links
($journal, $article->nid);
?>

#2

hdoll - November 9, 2009 - 00:37

Thank you for the hint. Somehow the functions don't find any authors. I'll have to keep digging.

#3

romca - November 9, 2009 - 08:58

try to see if you pass correct arguments:

<?php
print_r
($journal);
?>

<?php
print_r
($article);
?>

 
 

Drupal is a registered trademark of Dries Buytaert.