Page Authors on Sites create with template
When people select a site template (teaching, portfolio) during the creation process, the authors of the pages and posts on the newly created site are Luke, Paul Hebert, and I because we created the original templates. Is there a way to make the Commons Admin account the default author on the pages and posts of new sites that are created using the template?
#1 Updated by Boone Gorges about 2 years ago
- Status changed from New to Reporter Feedback
- Target version set to 1.15.2
Changing post author on the template will change the name of the author on sites created in the future. I assume this is not something we have to fix retroactively, for already-created sites?
There is no 'Commons Admin' user that I'm aware of. If I'm wrong about this, please give me some information about the user (like a link to the profile). If I'm right, we could either:
a. Create a generic 'Commons Admin' for purposes like this, and ascribe the posts to that new user
b. Ascribe the posts to some other existing user (Matt?)
c. At the time of site creation, switch authorship of the cloned items over to the site creator.
Laurie, could you please chime in with your thoughts?
#2 Updated by Laurie Hurson about 2 years ago
I think it would be too cumbersome to fix the sites already created.
Options A or C would be fine, I think - whatever is easiest to set up.
Ascribing the pages/posts to a user "Commons Admin" or "Commons Template" would hopefully alert people to the fact that these pages were created with the site.
Reassigning the pages and posts to the creator of the site would be fine too. Though this might confuse very new users since they will see that they have created pages but not understand that those pages/posts were pre-populated.
#3 Updated by Matt Gold about 2 years ago
I lean towards solution A, but I guess one question is what people do with the draft content. If they will delete the pages/posts, I think it would be better for it to be authored by a generic commons user. If they will edit the page/post, I think that Option C would be best and better for the long run, as content created by users should be under their own names. Thoughts?
#4 Updated by Boone Gorges about 2 years ago
Thanks, all. I agree with Laurie that A is the best. It's technically easiest, and it makes clear that these are auto-generated posts.
I've created a user 'commonsadmin' and switched post_author for each post/page on the three template sites to this user. See eg https://academic-portfolio-template.commons.gc.cuny.edu/wp-admin/edit.php?post_type=page. If site admins want to change authorship of a post, they can do it themselves.
If others feel strongly that we need to do C instead, it's possible, but it will have to be a code-level change.
#5 Updated by Laurie Hurson about 2 years ago
Thanks Boone. This sounds like a good, quick fix (instead of changing the code).
Are Site creators/admins able to change the author on the pre-populated pages/posts (that will now be attributed to commonsadmin? That way, for example, professors could change the "syllabus" page so that it's authored by them (as Matt suggested).
#10 Updated by Laurie Hurson almost 2 years ago
Circling back on this...I noticed on sites that use a template the back end author on pre-populated posts has been changed to "Commons Admin" as intended but on the front end it still says the post is by Paul Hebert (ex: https://authornametest.commons.gc.cuny.edu/)
This might be a function of the solution we chose for this issue and maybe the solution doesn't account for the display on the front end? Not sure, but I wanted to bring this up because I think the posts attributed to Paul (or Luke in the portfolio template) might confuse folks.
#14 Updated by Boone Gorges over 1 year ago
Thanks for the details. I've made the change to the following comment:
The default comments on the other posts are already attributed to fake users, so I think we're good to go here.