Feature Request: Author Bios
Permalink Browser Info Environment
A client recently asked me if I could include the author biographies on their C5 site- I did it, but I think it would be a nice easy add in to the addon's code by default.
All I really had to do was include the following in ajax.php and use a custom template:
and in curl.php
Thought I'd pass this along if you'd like to include it!
I didn't come across a good way to pick up a gravatar for author because I don't think the author email is available via the json api, but if there's something I'm missing, getting the author email so it can be hashed for a gravatar request would also be neat.
All I really had to do was include the following in ajax.php and use a custom template:
innerHTML = innerHTML.replace (/%AUTHOR_BIO%/g, post['author'].description);
and in curl.php
$innerHTML = str_replace ("%AUTHOR_BIO%", $post -> author -> description, $innerHTML);
Thought I'd pass this along if you'd like to include it!
I didn't come across a good way to pick up a gravatar for author because I don't think the author email is available via the json api, but if there's something I'm missing, getting the author email so it can be hashed for a gravatar request would also be neat.
Type: | Discussion |
---|---|
Status: | New |