OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



how to retrive the journel id

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

how to retrive the journel id

Postby thomas.thomasabraham » Sun Dec 04, 2005 10:59 pm

Hai all,
how to get the jouranl id during submission.ie, if i need the particular journal id in some part of the submission how to retrive that..as we now the variable $journalid we can get the id's ..but after once we get into a particlar journal how to know the current journal one.
kindly send me the suggestions
with regards
Last edited by thomas.thomasabraham on Mon Dec 05, 2005 10:48 pm, edited 1 time in total.
thomas.thomasabraham
 
Posts: 4
Joined: Thu Oct 06, 2005 11:57 pm
Location: india

Postby asmecher » Mon Dec 05, 2005 11:41 am

Hello Thomas,

If you're talking about modifying the Smarty templates, you can get the current journal ID using:
Code: Select all
{$currentJournal->getJournalId()}

If you want to get the current journal ID in OJS's PHP code, use:
Code: Select all
$journal =& Request::getJournal();
$journalId = $journal->getJournalId();

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8676
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests