OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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

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

Hi Magius,

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

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8315
Joined: Wed Aug 10, 2005 12:56 pm

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


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests

cron