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
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 4
Joined: Thu Oct 06, 2005 11:57 pm
Location: india

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, if i need the particular journal id in some part of the submission how to retrive 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.

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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


If you want to get the current journal ID in OJS's PHP code, use:

Code: Select all

$journal =& Request::getJournal();
$journalId = $journal->getJournalId();

Alec Smecher
Open Journal Systems Team

Return to “OJS Development”

Who is online

Users browsing this forum: No registered users and 2 guests