1) Under what circumstances is this smarty template used? I have never noticed it before, but see it located in the default template folder.
2) What I was really looking for was a a tpl for entries by author... I want to consider formatting a pageview for author entries that is different from the usual entries.tpl. Does that possibility already exist?
Example using comments_by_author.tpl ?
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Example using comments_by_author.tpl ?
Hi!
/blog/comments/AUTHORNAME/ ...
![Smile :-)](./images/smilies/icon_smile.gif)
Else, you would need to check for the $serendipity['GET']['viewAuthor'] or $_GET['viewAuthor'] variable. I don'T know if this var is assigned to smarty scope, so you might need to set that through the tempaltes config.inc.php.
Regards,
Garvin
The access to this template is not really wired into s9y. It can show comments by authors, see docs/NEWS if you search for [AUTHORNAME]. It can be access with URLs likeDon Chambers wrote:1) Under what circumstances is this smarty template used? I have never noticed it before, but see it located in the default template folder.
/blog/comments/AUTHORNAME/ ...
The file used for that is entries.tpl. So you'd need to evaluate the $view variable, it should hopefully point to "authors" in those cases.2) What I was really looking for was a a tpl for entries by author... I want to consider formatting a pageview for author entries that is different from the usual entries.tpl. Does that possibility already exist?
![Smile :-)](./images/smilies/icon_smile.gif)
Else, you would need to check for the $serendipity['GET']['viewAuthor'] or $_GET['viewAuthor'] variable. I don'T know if this var is assigned to smarty scope, so you might need to set that through the tempaltes config.inc.php.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact: