OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Trying to figure out how to add to <head>

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.

Trying to figure out how to add to <head>

Postby lednakashim » Fri Jan 07, 2011 4:43 pm

Hello,

I have been scouring the ojs source for the better part of the day trying to find how to add data to the head of a page. Anything I write in header.tpl isn't included in the <header>. I am trying to include a custom javascript that must be in the <head></head> region of an html. How is this done in ojs? Which .tpl do I modify to modify the head of every page?

Best,
Misha
lednakashim
 
Posts: 33
Joined: Wed Dec 29, 2010 10:23 pm

Re: Trying to figure out how to add to <head>

Postby jmacgreg » Tue Jan 11, 2011 3:16 pm

Hi Misha,

You may be editing the incorrect header file -- try looking in lib/pkp/templates/common for overall headers as well.

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


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests