118 Posts
webchun
8 years ago
Topic

Hello all, I'm new here. I'm just starting to explore seblod. So far, the more and more I learn, the more I like it :) 

Anyway I have a question about how to display list of items based on access level.
I have 2 user access levels

- Access Level A

- Access Level B

and I have 2 article categories

- Category A

- Category B

I want to create a listview (List & Search type) page that will return items based on the user access level only. So when user A who has Access Level A login, he will only see articles published under Category A, and when user B who has Access Level B login, he will only see articles published under Category B. How can I do that? 

Or, I can simplified the question to : How can I create the "My Items" list page

Thank you

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
1
Level 1

You need to add access level field to the search type (in hidden position) and set it to user->viewlevel live value, this will fitler articles by the access level.

118 Posts
webchun
8 years ago
0
Level 2

Hi Klas, thank you for your speedy response. 

Yes, I'm not really sure about 'set it to user->viewlevel live value' . Do I need to enter that text anywhere?

What I have done is adding the Article Category ID field to the search type and set the live value to a specific category. It's working good actually, but I will need to create a lot of list type pages as I have about 10 categories.

What I'd like to know, is there any simple way to make a list of "My Items" page. So when I access that page it would display items those are created by me only.

118 Posts
webchun
8 years ago
0
Level 1

Ah got it. I'm able to solve this problem. Thanks Klas

Get a Book for SEBLOD