Forums / Setup & design / a new project, I need your Ideas

a new project, I need your Ideas

Author Message

zaxofeel .v

Wednesday 08 November 2006 6:10:32 am

Dear All
I am about to start a new project using eZ puplish 3.7.1
There is a requirement but I still don't know how to implement it, so please help, it is really much appreciated.
The web site is about an e-magazine where supposed to have a (user corner)
this user corner should work as a place where the user can save his desired articles to his corner, can delete objects from this corner
I wonder how can I create such thing when a user registers?
I have ideas about the roles an policies where I can let him creae content, but I just need some brainstorming, how can I enable him to add an existing article to his corner?
I hope to hear your Ideas
Thanks and Regards

Claudia Kosny

Wednesday 08 November 2006 12:48:30 pm

Hi zaxofeel

Just a very general idea:
I would create a personal folder for each user (check here :http://serwatka.net/index.php/en/blog/ez_publish_3_8_new_custom_edit_handler for an example on how to do that).

Then write an extension that takes a posted node id and gives the object of this node id a new node assignment under the personal folder of the current user. (Check e.g here:
http://ez.no/community/forum/developer/adding_location/re_adding_location )

I am no sure whether this will work but it would my first approach to this problem.

Good luck

Claudia

Marco Zinn

Wednesday 08 November 2006 1:22:40 pm

Hm, depends on the level of "easy-to-use", that you want/have to provide ;)

For starters, why cant you just use the "drafts" system, that ez provides? As long, as you don't really have to publish the objects, that would do. But as soon, as you need to publish them, ie to get a node id for it, you'll need to have those "personal folders", which have been discussed now and then.

Marco
http://www.hyperroad-design.com

zaxofeel .v

Thursday 09 November 2006 3:51:06 am

well, that's really helpful dear friends,
I'm still to do more searching and more trials.
Thanks alot and still waiting for any more thoughts :)

Xavier Dutoit

Thursday 09 November 2006 4:25:33 am

On the contrib:

You have an extension to create personal folder. Otherwise, you can create that directly under the user node.

Create a new class "bookmark" with an attribute article "related object" (I would use the contrib enhanced related object, but should would with any attribute dealing with related objects).

Use the contrib powercontent, that allows you to create a node directly.

Then, on each article, you would add a button "bookmark", that calls powercontent to create a new object bookmark under the user with the attribute article = the current article.

That's it. As an added bonus, you could list all the people (or the number of) that bookmarked the current article on each article.

X+

http://www.sydesy.com

Claudia Kosny

Thursday 09 November 2006 4:46:21 am

Since Xavier already mentions bookmarks - depending on what exactly you want to do with the existing articles you could also use the the normal bookmark functionality for existing articles. The template for the personal folder would then fetch the bookmarks of the user it belongs to and display the articles accordingly.

Problems with this approach are:
- you cannot group or order bookmarks (as far as I know) so you just have one big list
- if the article is deleted, no user can access it anymore

Advantage:
-it is really easy to do :-)

Claudia