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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

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: 4190
Joined: Tue Feb 14, 2006 10:50 am


Return to OJS Development

Who is online

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

cron