Jueves, 30 Octubre 2014 16:46
beggarly

Possibility to show picture in the authors view

Possibility to show picture in the authors view

Postby martin6 » Mon Apr 08, 2013 10:59 am

Hello!

I am really glad that I found this fantastic componet.
There is just one question I have:
Ich choosed as a menupoint "Authors" view. Thats great, but it shows only the authors name and the email adress. Is there any possibility to get also the picture and may be a part of the description shown here and the whole other things like the total description and the written articles when you click on the authors name?

That would be really awesome!

Thanks so much!

Best

martin
martin6
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Mon Apr 08, 2013 10:53 am

Re: Possibility to show picture in the authors view

Postby chus » Wed Apr 10, 2013 1:12 pm

Hi,

My suggestion is to create a custom template for this view by copying components/com_authorlist/views/authors/tmpl/default.php
to
templates/your_template/html/com_authorlist/authors/default.php
and editing that new file.

You can call the image like:

Code: Select all
<img src="<?php echo $item->image; ?>" alt="" />

and the description:

Code: Select all
<?php echo $item->desc; ?>

or
Code: Select all
<?php echo substr($item->desc,0,150); ?>

to limit it to 150 characters for example
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica


Return to Author List



Who is online

Users browsing this forum: No registered users and 1 guest