You are viewing the PKP Support Forum | PKP Home Wiki

variables in template

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.

variables in template

Postby readytopark » Sun Apr 25, 2010 9:35 am

i've been working on OJS and starting to figure out its structure is designed to work very efficiently.. i think it's got a really good design.

but, I've run into one problem dealing with variables in template(*.tpl)

For instance, there's a variable, $content|nl2b in information.tpl and I have COMPLETE no idea where that variable is defined..

I discovered that It's related to "default.journalSettings.forAuthors" key value in locale.xml, but I can't figure out how they are connected and finally shown right in the web page..

Does anybody know how it works..???

Anything will help.. Thank you.!
Posts: 1
Joined: Sun Apr 25, 2010 9:23 am

Re: variables in template

Postby swing » Mon Apr 26, 2010 9:18 am

Hi readytopark,
template variables (like this one) are defined (and assigned to the template) in the appropriate page class (in this case in pages/information/InformationHandler.inc.php).
Maybe you are also interested to read the technical reference: http://pkp.sfu.ca/ojs/OJSTechnicalReference.pdf, chapter Design Overview, i.e. Request Handling?
Posts: 157
Joined: Tue Oct 09, 2007 2:59 am

Return to OJS Development

Who is online

Users browsing this forum: Google [Bot] and 1 guest