PDA

View Full Version : Author names in articles - selects user name instead of actual name


northlandadv
01-10-2008, 02:36 PM
Seems like this might be a little bug, or just something easy to fix that would make life easier.

When adding a new article, you must choose an author. Unfortunately, when you use the dropdown list to choose a author's username, the author field is then populated with the username rather than the actual name. This is a bit silly since then the username is then displayed in the article.

After reviewing the article object list, I saw that the author field in the new article page should be using the get_author_name object in the template. I assumed, then, it would be grabbing the author name entered when the user was set up. This is not the case. Instead it uses the field in the add article area which is auto-populated with the author username instead.

Of course, it's easy to override this field and put in the actual name. But what a pain! And why? Why doesn't this field populate with the real name instead of the username?

xgguy
01-11-2008, 05:32 AM
how can u override this?

Ksenija
01-11-2008, 12:18 PM
After you choose an author when adding or editing an article from the drop-down menu and the username shows up in the 'Author' field, you just need to delete it, if this field is left blank the first and the last name will show up instead of username.

northlandadv
01-11-2008, 12:49 PM
Thank you. But maybe the author_name should show up in this field by default instead? Then we wouldn't have to contstantly delete :)

shketuljko
01-11-2008, 03:14 PM
You can to this if you change VIVVO_ROOT/admin/templates/article_edit/options.xml on line 101.

Try to find this code:

<vte:value select="{user.get_username}" />


replace that code with this code:

<vte:value select="{user.get_first_name}" /> - <vte:value select="{user.get_last_name}" />



ENJOY :)

northlandadv
01-12-2008, 03:13 AM
Thank you!

shketuljko
01-14-2008, 09:11 AM
No problem ;)

ENJOY :)

xgguy
01-15-2008, 05:06 AM
is there a way to hv a list of authors with links to their respective author pages?

shketuljko
01-15-2008, 08:16 AM
Please read this:
http://www.vivvo.net/resources/case-studies/blog-case-study.html