9 years ago
Topic

Hello guys, I'm making a list of articles from a particular user, I even managed to do but you have to be logged in to be able to see, I did the following:

I created a list of the type of content I want to do the listing and added the "Article Created By" field and configured it as follows, "Live: User = id, and as Exact Match". 

With that I can list all the items that user, but only when logged in as he takes the "ID" straight from joomla when logged.

My case I need him to get the "user_id" field in the content itself, but it does not work it lists all articles.

It would somehow get the user id of the active content that is already loaded on the page?

Thank you all.

Get a Book for SEBLOD
4229 Posts
Kadministrator
9 years ago
0
Level 1

Hi,

it is not clear from your post which users (where should id of the user come from?) articles would you like to list - if you are trying to list current article authors articles you can use this field

http://www.seblod.com/products/10868 

175 Posts
webcastor
9 years ago
0
Level 1

I think what Junior[Caju] is trying to achieve is 1-to-many view in some sort of blog view. Since in blog view there can be articles from many authors, there is no clear ID based on which a list can be created (Live | Url/Variable).

However, once the author page is displayed, Live | Url/Variable ID will correspond to author ID.

9 years ago
0
Level 1

So I have a custom list of all my users, when clicking on the user I go to the profile page, done that I put the module listing SEBLOD and configured to list all articles pertaining to that user.

But what happens is that when I'm not logged in the articles are not listed in the user profile, and when I soon appears a list of articles that user, but when I access another profile list of articles continues to be the logged in user.

What I need is that the independent counsel related to each user being logged in or not items to be listed.

I hope that with this esplicação lighter. Thank you.

9 years ago
0
Level 1

I'll post a picture to get a little clearer, see below:

http://projetos.cajucomunicacao.com.br/users.png

The image to the left shows the profile of the User offline, a message that was not found any articles that user appears.

The right image shows the profile of the logged in User, oh yes he brings the articles that user, only that if I enter any other profile it always returns the items and not the logged in user's user profile accessed.

I understand that this is due to the configuration of my list that is in the picture below, as you can see I've set follows the "Article Created By" field put the "Live" as "User" and set its value as "id".

What I understand he seeks "$user->get ('id')" joomla then you need to be logged so that the results are displayed, I believe I would have to put "user_id" instead of "$ user->get ('id') "but when I put the" user_id "it always returns me all articles to all users.

9 years ago
0
Level 1

Personal Oops, solved, bought the field and sd live with it managed to put the value of the user_id field, in that it pulls the list of user-related articles. Thank you all ...

Get a VIP membership