Page list displaying pages by selected authors.

Permalink 1 user found helpful
I'm working on an online magazine where people can submit reviews on films, music, art and other things.

The website does not allow memberships and therefore they will submit the reviews via email and administrators will then add them to the website.

I require a custom page list template or a means to add a page list that will allow me to select an author and show all their respective pages regardless of where the pages are located. The pages will be located under categories and not author names. This may also need a page attribute creating that allows me to create a new author or select from existing ones.

I don't know much PHP so any help would be massively appreciated.

Thanks

PeteDeane
 
Mnkras replied on at Permalink Reply 1 Attachment
Mnkras
drop this in /blocks, (after un zipping) then install in the dashboard, its a new block called Page List User.

Let me know if you need any changes

Mike
c5mix replied on at Permalink Reply
Mnkras,
I just found this post and this is a great block man! Thanks for this. I've got a question: Can you modify it so that when added to the profile page it automatically pulls back the pages by that user who's profile your viewing (so you dont have to select a user)?
Mnkras replied on at Permalink Reply
Mnkras
I know I can easily get it for the currently logged in user, put if you were to go to /profile/2 and you are user 1 you would see your stuff,

in the controller, where it says $this->uID that is what is used to filter the page list
PeteDeane replied on at Permalink Reply
PeteDeane
Thanks Mike.

This add on list pages by a certain user. This is a brilliant add on which I will no doubt use in the future but for now I'm needing a page list to display by Author. The author name and user name will be different. There will be 3 main users of the site who will be adding the content. The content will come from many different sources and passed to the site admin to place on the site. Each new piece of content will need to display who has written it which I then need to display in a page list all pages by an author and not a user. If you get what I mean.

See the link below - Its from the original site which I'm in the process of transforming. It should give you an idea of what I mean.

This show a review page which shows the author name - top left. This is just the person who has written the piece, not the person who has placed it on the site.

http://zestforlifezine.co.uk/Art_-_Philharmonic.html...


This is then added to a list on a contributors page which shows all the reviews that author / contributor has written.

http://zestforlifezine.co.uk/About_Us.html...


I hope this all makes sense.

Thanks

Pete
Mnkras replied on at Permalink Reply 1 Attachment
Mnkras
make a new user attribute with the type of text and the handle "full_name",

then use the attached addon (just overwrite the other one)

to edit how their name is displayed look in the view its near the top.
PeteDeane replied on at Permalink Reply
PeteDeane
Sorry - Need more help!!!

Will I need to create a new user for each new author?
Mnkras replied on at Permalink Reply
Mnkras
Yes, whoever the page Owner is is the author.
PeteDeane replied on at Permalink Reply
PeteDeane
OK.

Ideally I need to be able to add a name in a text attribute which I have created called "author_name", this will then be filled in when a new page is added. This then needs be selectable in the page list.
Mnkras replied on at Permalink Reply
Mnkras
do you just want a text field in the page List where you can put their name?
PeteDeane replied on at Permalink Reply
PeteDeane
Which ever is the simplest way for the editors of the site.

They need to be able to add the name of the author/review writer (ideally without having to create a new user for each first in a custom attribute when adding the new page. The author name needs to be selectable in a page list to display all pages by that author.

It would also be helpful to have the option to select from an author from a drop down list which will be populated by the author names.
PeteDeane replied on at Permalink Reply
PeteDeane
Just to note - Each page will be placed under a category, such as a music review will be placed under the music page, and not under a contributor/author page.
Mnkras replied on at Permalink Reply
Mnkras
Ideally each author would be a user, I guess you could make a select attribute and use that..., im not so sure what a good way to do this is,
PeteDeane replied on at Permalink Reply
PeteDeane
Thanks Mike.

I'll let you know how I get on!!! Thanks for all your help.
PeteDeane replied on at Permalink Reply
PeteDeane
Is there a custom attribute I can create that will allow the user selection when a new page is created. I know I can create the page then edit the user / owner in the page properties, but I wanted an easier way which allow the user / owner to be changed when creating the page.

Any ideas???
jem1516 replied on at Permalink Reply
This block no longer works with new installs of C5, some issues with the loader...

Any news on updates, or development? Or... another way of doing said task?

Thank you.
enlil replied on at Permalink Reply
enlil