Newscoop 4 Cookbook

Managing multiple authors and articles

Newscoop has a built in author management tool in which you can create and edit author accounts, with biographies, pictures and other information. You can also create different kinds of author accounts, for photographers, translators, researchers or other contributors - multiple authors can be assigned to a single article.

The following sample code will explain how to print author information when displaying an article. You can print an author's last and first name, their image URL, full name, author type (photographer, etc.), their email address and biographical text.

<ul> {{ list_article_authors }} <li style="clear: left;"> <strong>{{ $gimme->author->last_name }}</strong>, {{ $gimme->author->first_name }}<br /> <img src="{{ $gimme->author->picture->imageurl }}" align="left" width="66px"> {{ $gimme->author->name }} ({{ $gimme->author->type }}): <a href="mailto:{{ $gimme->author->email }}">{{ $gimme->author->email }}</a> {{ $gimme->author->biography->text }} </li> {{ /list_article_authors }} </ul>