Hi,

i created a content "User Image Gallery" and gave all rights to use a blog users to edit their own content. This all works fine. Even the image gallery is working and not too hard to user (I feared, I wouldn´t be able to do that), but how can I show a user all his own content sorted in categories ?

I don´t know what´s the best strategy to do it.

Thanks for any help... it´s enough if someone points to the direction. (like ... "use views!" or whatever).
Marc

Comments

j_ten_man’s picture

Definitely views. You can do this pretty easily with views once you understand how views works.

karc2008’s picture

I tried, but failed at the moment.

I frist created the the new view, including the fields, Node:title, Edit, Delete, Creation Date etc., then I filtered it by the content type User Galleries, but I can´t find a filter, like "user = Author of node".

Soemone in the past told me to do it by using arguments, but aren´t arguments connected the url ?

What I want finally is a page-view, which is linked from the profile of the user, so it would be one URL for all, just with a different view-content.

Or did I get that wrong? Can it be done with filtering (and what filter should, I use?) or by argmuments?

Sorry, that I need more help, I thought, i would be able to do it, but I clearly still don´t understand arguments.

WorldFallz’s picture

Check the views advanced help-- one of the tutorials is very similar to what you're trying to do.

karc2008’s picture

That´s what I did:
(I need to mention, that I just got the german version here, so I can just guess, what the english phrases for options and menus are)

  1. I chose "User UID" at arguments
  2. In the menu, that comes up, I selected "use standard argmument"
  3. In the sub-menu of this menu, I chose "User-ID of the current logged in User"
  4. At "Validator" I chose "User" and "Allow both numeric UIDs and string usernames" (because, I don´t knwo what I will do in the future with the user-management)
  5. Next Step: I checked, the fields "Restrict user based on role" and "authentificated user" (at the moment my only role)
  6. At the options-menu "Which action to take, if the Argument fails at the validation" I chose: "View empty Text"
  7. EDIT: Ah.. before I forget about it.. At the end at "Fields", I chose "Content" and the field for the user-images and a image-cache-configuration, to show the first pic of each album.
  8. I began to love views more and more

Well, that´s all.. and it worked.

I hope, this is the right way to do it, and won´t bring up trouble of some sort in the future.

j_ten_man’s picture

Depends on what you want.

1 - Only I will go to the page of all of my content. No one else needs to be able to get there except me. If this is the case, then you can just use filters. The filter is under "User" group and is called "Current".

2 - If other people will be getting to the page as well as me, then you will need to use arguments (yes, they are connected to the url). Obviously, the argument in the url would need to be unique to the user (uid or username). The argument is under the "User" group and would be one of the options (whichever you choose). When you set your url, make sure to add % for the argument. For example, 'user/content/%' would be the url, and then that last argument would be added. You can also accomplish the first option by using an argument as well. Check out the different options when you add the filter.

karc2008’s picture

Seems this is a much easier solution than mine. But at least, I understood a tiny bit of arguments now.