Accessing the logo array?

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: 25
Joined: Tue Jan 13, 2009 9:48 am

Accessing the logo array?

Postby downtheroad » Wed Jan 14, 2009 1:03 pm

I would like to have the logo appear on the article abstract page. In templates/article/article.tpl I can hardcode this, but it would be nicer if I could get it from the array $displayPageHeaderLogo. What do I need to do to make this array available to this template file?

Similarly, for some of the other pages, in templates/common/ I would like to use this array but it is not available (and so in the code below 'site title' is used instead. How can I make the array available in all cases?

{if $displayPageHeaderTitle && is_array($displayPageHeaderTitle)}
<img src="{$publicFilesDir}/{$displayPageHeaderTitle.uploadName|escape:"url"}" width="{$displayPageHeaderTitle.width|escape}" height="{$displayPageHeaderTitle.height|escape}" {if $displayPageHeaderTitle.altText != ''}alt="{$displayPageHeaderTitle.altText|escape}"{else}alt="{translate key="common.pageHeader.altText"}"{/if} />
{elseif $displayPageHeaderTitle}
{elseif $alternatePageHeader}
{elseif $siteTitle}


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

Re: Accessing the logo array?

Postby mcrider » Thu Jan 15, 2009 11:37 am

Hi there,

You could try something like this in article.tpl:

Code: Select all

{assign var=displayPageHeaderLogo value=$currentJournal->getJournalPageHeaderLogo(true));}

Hope that helps,

Return to “OJS Development”

Who is online

Users browsing this forum: No registered users and 2 guests