OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
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.

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

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.

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

Re: Is there a main page or sth?

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

Hi,

At 5.4 Journal Page Footer let me add this:

Code: Select all
<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.web.es/piwik/" : "http://www.web.es/piwik/");
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);
</script>
<object><noscript><p>Web analytics <img src="http://www.web.es/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript></object></a>


And nothing appears.

Cheers.

Edit: Sorry, I am missing data in the code. It is already resolved.
vlilloh
 
Posts: 279
Joined: Thu Feb 07, 2008 3:35 am
Location: Murcia, Spain


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 3 guests