Add keyword to "view article"

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.
magius
Posts: 21
Joined: Thu Nov 17, 2005 11:28 am
Contact:

Add keyword to "view article"

Postby magius » Fri Jun 30, 2006 11:35 am

Hi,

It's possible add the "keyword" (<subject> in sql database) after the abstract in:

.../article/view/99

I read in article.tpl at line 76

<div>{$article->getArticleAbstract()|strip_unsafe_html|nl2br}</div>

I try - ingenuous - to add a line type
<div>{$article->getArticlesubject()|strip_unsafe_html|nl2br}</div>

but without success, I'm not a programmer :)

(OJS 2.1.1.1 CVS version, test site - Nice options "Announcement", Thanks to all developer team)


Suggestion-help?

TIA
magius

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

Postby asmecher » Fri Jun 30, 2006 11:52 am

Hi Magius,

Close -- try getSubject() instead of getArticleSubject().

Regards,
Alec Smecher
Open Journal Systems Team

magius
Posts: 21
Joined: Thu Nov 17, 2005 11:28 am
Contact:

Postby magius » Fri Jun 30, 2006 3:03 pm

asmecher wrote:Close -- try getSubject() instead of getArticleSubject().

Regards,
Alec Smecher
Open Journal Systems Team


Great Alec :D
Perfect

Thank very much indeed
Magius


Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest