Discussions
Activity
Sign In
How it works
Newscoop Themes
Newscoop 4.0 - Author object
Vote Up
0
Vote Down
Tomasz Rondio
January 2012
Posts: 63
Member
How it is made?
I need to get "about me" text and image url.
$gimme->author->picture->imageurl
and
$gimme->author->biography->text
does not seem to work
Post edited by Micz Flor at 2012-01-25 03:55:47
3 Comments
sorted by
Votes
Date Added
Vote Up
1
Vote Down
Micz Flor
January 2012
Posts: 184
Administrator
here are some code snippets from tageswoche.ch. possibly these might help?
if you find any good solutions, please add them to our templating wiki. with a subheader: Newscoop Version 4.0 and don't delete the old ones.
https://wiki.sourcefabric.org/display/NsLingo/Author
{{ list_article_authors }}
{{ if $gimme->current_list->at_beginning }}by {{ /if }}
{{ if $gimme->current_list->at_end }}{{ if $gimme->current_list->index > 1 }} and {{ /if }}
{{ else }}
{{ if $gimme->current_list->index > 1 }}, {{ /if }}
{{ /if }}
{{ $gimme->author->name }}
{{ if $gimme->current_list->at_end }} {{ /if }}
{{ /list_article_authors }}
{{* ARTICLE AUTHORS *}}
{{ list_article_authors }}
{{ if $gimme->current_list->at_beginning }}
<article>
<header>
<p>Autoren</p>
</header>
<ul class="people-list">
{{ /if }}
<li>
{{ if $gimme->author->user->defined }}
<h3><a href="{{ $view->url(['username' => $gimme->author->user->uname], 'user') }}">{{ $gimme->author->name }}</a> ({{ $gimme->author->type }})</h3>
{{ else }}
<h3><a href="#">{{ $gimme->author->name }}</a> ({{ $gimme->author->type }})</h3>
{{ /if }}
<figure>
{{ if $gimme->author->picture->imageurl }}<img src="{{ $gimme->author->picture->imageurl }}" alt="Portrait {{ $gimme->author->name }}" width=60/>{{ /if }}
</figure>
<p>{{ $gimme->author->biography->text|strip_tags }} {{ if $gimme->author->user->defined }}<a href="{{ $view->url(['username' => $gimme->author->user->uname], 'user') }}">Alle Artikel und mehr zur Person</a>{{ /if }}</p>
</li>
{{ if $gimme->current_list->at_end }}
</ul>
</article>
{{ /if }}
{{ /list_article_authors }}
Post edited by Micz Flor at 2012-01-25 03:58:11
Vote Up
0
Vote Down
Jakub Górnicki
January 2012
Posts: 134
Member, Administrator, Sourcefabric Team
Tomek did you try to attach some images or is the message badly formatted?
Vote Up
0
Vote Down
Tomasz Rondio
January 2012
Posts: 63
Member
solved.
I did attached picture and about me text but only in "manage users" section. Now I did the same in Manage Authors and it works fine.
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339