header image for html files?

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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: 52
Joined: Sun Feb 11, 2007 3:46 pm
Location: Vancouver

header image for html files?

Postby arachne » Sat Feb 17, 2007 12:18 am

Hi - is it possible to maintain the look-and-feel of the header for the other journal pages (which have our image header) for the HTML files in each issue?


Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Mon Feb 19, 2007 10:31 am

Hi jenea,

HTML articles use the templates/article/article.tpl template to wrap HTML content; if you modify this template to include the header layout you'd like to use, you'll need to include additional HTML here. Depending on the nature of the modifications you'd like to make, you may be able to just use CSS -- if that's possible, I'd suggest doing so.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada

Posts: 52
Joined: Sun Feb 11, 2007 3:46 pm
Location: Vancouver

Postby arachne » Mon Feb 19, 2007 11:38 am

Thanks! - this worked out well:

in article.tpl I placed the code calling up the page header image from 'header.tpl' (but took out the variables) & placed it after "div id="container"" and before "div id="body""

Code: Select all

<div id="container">

<div id="header">
<div id="headerTitle">

{if $displayPageHeaderTitle && is_array($displayPageHeaderTitle)}
   <img src="{$publicFilesDir}/{$displayPageHeaderTitle.uploadName|escape:"url"}" width="{$displayPageHeaderTitle.width}" height="{$displayPageHeaderTitle.height}" border="0" alt="" />


<div id="body">

and it works fine! :D Might want to scale down my page header img though, it's a wee bit big for the HTML layout. But otherwise real nice, and gives some continuity with our layout of the last 6 years of publishing.

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests