Member
Member
Nordlicht   2019-01-06, 17:33
#1

What must be done to enable website visitors to select news or blog(s) by author?

If we have different blog/news writers on the ZP pages, then it would be nice to display the editors name below or next to the headline or sidebar, so visitors know who is the author of the story.

Then it would be nice if this name would be clickable and linking to an overview of "all stories of this author" page.

Thanks.

Administrator
Administrator
acrylian   2019-01-06, 18:04
#2

That's currently not possible on the front end (unless you want to do quite some custom coding). This is planned for the future (https://github.com/zenphoto/zenphoto/issues/807 - author actually here also refers to "owner" on images and albums). Workaround would be to use tags. On our site we use author_ for that reason.

You can easily display the author on single news articles or within the news loop but as usual you have to edit your theme. see the functions documenation (search for "author").

Member
Member
Nordlicht   2019-01-06, 18:57
#3

Thanks!

Btw. this page: https://www.zenphoto.org/news/theming-tutorial/

includes a dead link to: https://github.com/zenphoto/DevTools/tree/master/demo_plugin-and-theme
Here: "We also provided example files of a bare bones theme on GitHub. "

But should be: https://github.com/zenphoto/demo-theme

Enjoy!

Administrator
Administrator
acrylian   2019-01-06, 19:11
#4

Thanks. FYI the demo theme is also listed on the themes section itself: https://www.zenphoto.org/theme/demo-theme/demo-theme.jpg.html

Administrator
Administrator
acrylian   2019-01-09, 13:15
#5

Quick update: There is actually a quite easy way via the search engine. Try such a link:

http://yourdomain/page/search/?words=nameofyourauthor&searchfields=author

This should give a search results page with all pages and articles of that author.

Member
Member
Nordlicht   2019-01-09, 19:58
#6

Looks good
Now I need to see how to integrate it in the template...

Thanks for your effort!

Administrator
Administrator
acrylian   2019-01-09, 20:21
#7

Normally I don't/can't fullfill such small wishes instantly but the support build will get ready some made template functions for this soon.

Member
Member
Nordlicht   2019-01-10, 09:10
#8

What else to say

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.