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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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.

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.
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

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
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest