Need help with personalized messages

Author Message

Lukasz Piech

Tuesday 05 June 2007 6:45:30 am

Hi

i am trying to figure out how to implement such fuctionality:
1. A logged in user is redirected to a page with personalized messages directed to him (easy)
2. A user must confirm that he/she read the message (easy when i.e modifying the poll class)
3. A report must be possible to trace who replied yes and who replied no (also easy as poll is collected info so you can export it to csv)
4. NOW THE TRICKY PART - the messages (polls in this example) must either be moved to a different folder (say, archive) of THIS PERSON (belonging to this person) or be moved down the page for this person

Do you have any hints on how to do point 4?
thanks

Eric Bourgain

Wednesday 06 June 2007 9:49:32 am

It's hard to move anything but content. I would use a specific content class, with an after publish workflow, and let a specific eventtype do the job

Lukasz Piech

Thursday 14 June 2007 12:05:19 pm

Can you please expand how a workflow should look like?

Bartek Modzelewski

Friday 15 June 2007 3:41:36 am

Hi Lukasz

I don't know what exactly you need, but maybe you should consider creating dedicated extension with module and views for writting/reading messages. Messages wouldn't be as content objects, but just objects created with ezpersitanceobject class and stored with separate db table. Then you will be able to control message flow (reading, responding) by yourself in php code.
If you need it to integrate it with some templates you can write custom fetch functions.

Bartek

Baobaz
http://www.baobaz.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.