Hi there, I have seen a few helpful articles about how to create an author/contributor list, but they ended up being dead end, since we don’t want to have to enter the email or a password for each author (this would add a lot of unnecessary time for the admin of the site to have to input):
SO, what I want to do is slightly different, create a contributor page with a dropdown for each author, where you can view their bio + articles they authored, vey much like this:
Any tips on which cookbook or instruction page would lead me to this kind of contributor list?
Basically, it’s a new website for a magazine so the authors are people who have contributed to the printed magazine over the years (so they are not authors on the website, but authors from the printed mag).
I suppose I am not sure the best way to input these authors/contributors, or how to structure this data.
There will be about 100 authors to input. Either I can input them all at once as users, then select them from the list as authors when I input the articles. OR I can input them in one by one via their respective article pages. IF I use the author/user method, I would want to make it so that I don’t have to input password or email, since we don’t need that info for them, just their name + 1-sentence bio.
Ok, then creating users is not the way to go. Maybe then create this users as simple pages with the users names as title and a field for their bio. Then query the users in articles (select/multiselect) field.
Thanks Sonja, I think I’m so close! I tried pasting the above code into my contributors.php template page, but still not printing the url’s to the articles attributed to each author below their names. Is this what you meant?
“Contributors” is the label I use for the collection page of all authors.
"Author’ is the label I use for the attribution on individual article pages.
(reminder, this is a website for an online magazine)
Hi thanks, I did try that, and a few other things, but it’s still not printing anything out on the contributors page front end. I assigned each of the authors i’ve input on the contributors list to at least one article, and still nothing shows up. hmmm.
ACTUALLY, SORRY. I should use the multiselect for my author selection on the individual archiveEntry page! (I realized the list would get to be 100 contributors which is unwieldy for a dropdown list) I can resend the package if you haven’t already opened it?
Since you now have a multiselect field, the filter must be slightly changed as well, see above.
And you don’t get an error message because debugging is not enabled in your config.php.
Make sure that all config options are within a single return array, currently you have multiple return statements in your config, and everything after the first return statement will be ignored. PHP: return - Manual
Darn, only thing is, I also have other sections with magazine content, for example, there’s a section called the lexicon where people contribute entries, so what you wrote here only pulls from the archive section, I take it and if i want to include sources from elsewhere on the site (from another section as well), would that be an entirely different story?