You are viewing the PKP Support Forum | PKP Home Wiki

call the Journal Abbreviation, in a template

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

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

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

call the Journal Abbreviation, in a template

Postby nelson » Wed Jan 24, 2007 5:26 pm

how can I call the vaule of "Journal Abbreviation", in a template, to obtain for each review a string like:

"This is: (jounal abbreviation)" instead of Journal title.

Posts: 36
Joined: Fri Jan 12, 2007 6:17 am

Postby asmecher » Wed Jan 24, 2007 5:57 pm

Hi Alf,

Use the currentJournal variable, e.g.:
Code: Select all
{if $currentJournal}The current journal is: {$currentJournal->getSetting('journalInitials')}{/if}
Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby nelson » Fri Jan 26, 2007 7:47 am

thanks, works well,
i added also an esle so:

if ->current journal....

else -->OJS general page name

but i wrote the second part statically and not using a variable
Posts: 36
Joined: Fri Jan 12, 2007 6:17 am

Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 5 guests