Share » Forums » General » A policy for a separate content object

A policy for a separate content object

A policy for a separate content object

Monday 09 May 2005 10:38:21 am - 5 replies

Author Message

kracker (the)

The Doctor

Tuesday 10 May 2005 2:44:35 am

Marat,

The short answer is: <i>Yes</i>!

The long answer is in part (I think) why no one else has replied to this thread is not an FAQ entry or quick solution.

Your going to want to do a lot of learning up on eZ publish to grok the basics of just how to implement this specific (detailed) functionality.

Try using the "Object Relation List" Attribute in you class. This attribute should allow you to specify a user account per object.

Then you might manipulate the display template for your custom class / object (we will call it personal-article) to only display the personal-article's which are associated with the currently logged in user, perhaps with a case to urge anonymous users to login to view their personal-articles .... *shrugs*

Although, in truth there may be several alternate implementations of your described functionality which may be more desirable ... not certain without digging deep.

I'll go to the mat for the community, I just can't do it all for ya. Someone else should really step in and make me look bad here by giving you more of an idea than my empty reply.

break a leg,
//kracker

Sole : If I had won ...
<i>would I even be here now? Or no one notices cause it doesn't really add up to represent enough to justify it yet.</i>

Sole : Da Baddest Poet ... <i>... Truth is, I only rap cause I ain't smart enough to write a</i> <b>book</b>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marat M.

Tuesday 10 May 2005 4:34:48 am

I think, logically all that should be implemented in this way:

1. I specify a user per each personal-article manually (actually I will do it exactly so).

2. In the template for displaying the "Widgets" folder I write a piece of code (perhaps 'if-then') that compares two variables - 'logged in user name' and 'the object relation list attribute' with one another. If they are the same - then the article is listed. If not - then false (not listed). I'll look up the documentation for eZ and learn if-then clause.

Maybe another implementation could be as follows:
to create a folder for each user and simply cut-paste the article into it. That would be much easier to implement as for the template code. However, it's a problem here on how to create a folder for each newly registered user :) It can be done manually but when there are hundreds of users it's a really frustrating work.
What do think? :)

Thanks,
Marat

kracker (the)

The Doctor

Tuesday 10 May 2005 4:53:32 am

Crushed for time so you'll have to play this out without me ...

I hear you 100% and your right but ...

That's even more complicated to setup, I would really suggest you look into acquiring an advanced eZ publish developer to either walk you through building the required kernel hack or extension in order to support this implementation or more realistically, be prepared to pay for at least some development from someone with direct experience with this.

Cause I have not seen a drop in solution in the community from which to source from ... although I do believe that VisionWT has contributed some interesting work in the eZ publish mailing list in a similar regard? Just about any of the eZ publish Solution Partners or eZ systems themselves should be able to help you out.

//kracker

Sage Francis : I Apologize (Ft Sole)

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Tuesday 10 May 2005 4:57:16 am

If you don't have too many groups (having different access rights):

Create several groups of users (say west and east),
Grant them different access rights:
East has a read access to section "east"
West has a read access to section "west"

Then assign the section to the widgets and it works.

X+

http://www.sydesy.com

Marat M.

Tuesday 10 May 2005 8:57:23 am

The question is that I need not an access of group of users to some content but of a separate user.
A separate user to separate objects (though within one folder).

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu