OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Smarty Template-How to load value from config.conf file

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.

Smarty Template-How to load value from config.conf file

Postby Mono » Sat Mar 24, 2012 5:37 am

I want to modify header.tpl(ojs/templates/common) file like below:

{config_load file='foo.conf'}
<header.tpl code goes here>

But though I am placing foo.conf in ojs/templates/common folder i.e. same folder as header.tpl,the values are not getting reflected.

So any help in this regard would be appreciated.
Mono
 
Posts: 1
Joined: Sat Mar 24, 2012 5:31 am

Re: Smarty Template-How to load value from config.conf file

Postby jmacgreg » Wed Mar 28, 2012 10:21 pm

Hi Mono,

I'm not exactly sure what you are trying to accomplish here -- could you give us a better idea as to the intended result, eg. what kind of info you are trying to load into the template file? You may also want to take a look at the Smarty documentation at http://smarty.net (OJS uses Smarty as its template engine).

Cheers,
James
jmacgreg
 
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 0 guests