OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Accessing the logo array?

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.

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/header.inc 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}
{$displayPageHeaderTitle}
{elseif $alternatePageHeader}
{$alternatePageHeader}
{elseif $siteTitle}
/>

dr
downtheroad
 
Posts: 25
Joined: Tue Jan 13, 2009 9:48 am

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,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron