By Kevin on Tuesday, 18 February 2014
Posted in General Issues
Replies 3
Likes 0
Views 761
Votes 0
I posted a question on limiting articles by user in the Joomla forum and it was suggested that I use a community extension to store unique user data. In my case the data I want to maintain for each user would ideally be a Joomla article. I realize the ES user profile is meant for more discreet data but thought I'd ask the question here to see what ideas you have.

Goal: A unique "User Article" will be created for every member that only they and the administrator can see. Any attempts to access the article via creative URL should be denied.

Alternatives:

1) One way would be to use the ACL mechanism whereby a group would be created for each user and that group would have only 1 member, that user. Then that user's unique Group and the Administrator Group would be applied to each "User Article" when it's created.

However, I understand there may be ACL Group limits that would make this method break-down? For example, admin area UI that can't load 100's or 1,000's of user group names.

2) Create an article category and make each user an author of this "Unique Articles" category. Then I could create an override for the article view and loop through at the top to bypass any articles in this "Unique Articles" category such that the user will only see articles for which they are the author.

Any better, simpler approaches or creative use of the ES profile?
Hello Eileen,

I don't really see a point in adding this within EasySocial because you are trying to restrict user's access to the article in Joomla. Since you want to be able to restrict users to only be able to view specific articles assigned to them, I guess this is how you should add them:

1. Create article (Set the article author to be the user that should be allowed to view this item)
2. Create a content plugin to control the access to the article.
·
Tuesday, 18 February 2014 02:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, I notice it was 2:13AM in the morning your time, I do hope you get some sleep sometime From your wisdom I found a good article that gives me a guide on what to do, it's written for J1.5 but I imagine the general concepts and steps apply if anyone else is interested. Now I'm thinking of ways to leverage ES user profile data via plugins in our site content for other purposes too, thanks!
·
Tuesday, 18 February 2014 06:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Great and you're welcome.
·
Tuesday, 18 February 2014 10:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post