View Full Version : Show author infomation

03-03-2008, 09:57 AM
Hello vivvo,

I'm want show more author infomation in the article.
Example as: Author picture, author address...etc

How I can do it.


03-03-2008, 10:23 AM
You can include this box in your article template:

<vte:include file="{VIVVO_TEMPLATE_DIR}box/author_info.tpl" />
(preferably in right column)

03-31-2008, 11:12 AM
Let's say I have an Editorial container on the main page. This container should have article summary info and author info. The article's summary details are loading fine, but I want the author's box (with name, picture and bio) to show up near the abstract text in my Editorial container. How to manage this in author_info.tpl since test="{CURRENT_AUTHOR}" didn't worked for me?

03-31-2008, 12:36 PM
You can add this block of code to your summary/default.tpl (or make a new summary template if you don't want this system-wide):

<vte:box module="box_users">
<vte:param name="search_id" value="{article.get_user_id}" />
<vte:param name="search_limit" value="1" />
<vte:foreach item = "user" from = "{user_list}">
<a href="{user.get_href}"><vte:value select="{user.get_name}" /></a>
<vte:if test="{user.picture}">
<img src="{user.get_picture_href|'summary_medium'}" alt="image" />
<vte:value select="{user.get_bio}" />

03-31-2008, 09:50 PM
Thank you verry much, it worked like a charm.

04-01-2008, 08:35 AM
No problem :)