PDA

View Full Version : Show author infomation


khacqui156
03-03-2008, 10: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.


Thanks

Micha
03-03-2008, 11: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)

clawzeeb
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?

Micha
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:params>
<vte:param name="search_id" value="{article.get_user_id}" />
<vte:param name="search_limit" value="1" />
</vte:params>
<vte:template>
<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:if>
<vte:value select="{user.get_bio}" />
</vte:foreach>
</vte:template>
</vte:box>

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

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