Is there a main page or sth?

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

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.
Posts: 6
Joined: Fri Nov 14, 2008 6:55 am

Is there a main page or sth?

Postby levidad » Fri Nov 28, 2008 9:57 am

Hi folks

Maybe this info exists and didn't manage to find, but, is there a main page that calls all the styles and scripts, and inside which all other pages are loaded (just like a MasterPage in .net)?
I need to provide some extra client functionality via javascript, and I just don't what would be the best place to reference it.

Thanks in advance!

Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Is there a main page or sth?

Postby mcrider » Fri Nov 28, 2008 10:42 am

Hi levidad,

I would suggest looking into templates/common/header.tpl for adding Javascript to OJS.


Posts: 297
Joined: Thu Feb 07, 2008 3:35 am
Location: Murcia, Spain

Re: Is there a main page or sth?

Postby vlilloh » Sat Nov 29, 2008 2:16 am


At 5.4 Journal Page Footer let me add this:

Code: Select all

<a href="" title="Web analytics" onclick=";return(false);">
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "" : "");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
piwik_action_name = '';
piwik_idsite = 1;
piwik_url = pkBaseURL + "piwik.php";
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
<object><noscript><p>Web analytics <img src="" style="border:0" alt=""/></p></noscript></object></a>

And nothing appears.


Edit: Sorry, I am missing data in the code. It is already resolved.

Return to “OJS Development”

Who is online

Users browsing this forum: No registered users and 1 guest