You are viewing the PKP Support Forum | PKP Home Wiki

Template cleanup: issue/header.tpl vs. common/header.tpl

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.

Template cleanup: issue/header.tpl vs. common/header.tpl

Postby rmichael » Mon Jul 09, 2007 10:05 am

I've just noticed the issue pages (e.g. "current.tpl") use their own header.tpl file (several. Unfortunately, regardless of intent, it constructs it's own navbar. (Although almost the entire file is a cut and paste from common/header.tpl.)

I've modified the navbar in common/header.tpl and it's a pain to modify it elsewhere to keep them synchronized. Obviously, I can change our installation, but if this needs to be done in general, I'll send diffs. (I'd be inclined to special case the end of common/header.tpl, displaying the issue oriented header when required. There is only a difference of about five lines in the two files..)

[I haven't looked at 2.2, perhaps this has been changed?]
Posts: 113
Joined: Fri Mar 30, 2007 3:32 pm

Postby asmecher » Mon Jul 09, 2007 12:05 pm

Hi Richard,

This has already been changed in CVS, and when OJS 2.2 is released, templates/issue/header.tpl will no longer be used.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby rmichael » Wed Jul 11, 2007 10:54 am

Ok, thanks for the news.
Posts: 113
Joined: Fri Mar 30, 2007 3:32 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest