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.

eZ debug

Timing: Jan 18 2025 18:35:28
Script start
Timing: Jan 18 2025 18:35:28
Module start 'layout'
Timing: Jan 18 2025 18:35:28
Module start 'content'
Timing: Jan 18 2025 18:35:28
Module end 'content'
Timing: Jan 18 2025 18:35:28
Script end

Main resources:

Total runtime0.0211 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9375152.6250
Module start 'layout' 0.00550.0040 740.562539.4453
Module start 'content' 0.00950.0093 780.007889.2266
Module end 'content' 0.01880.0023 869.234434.3047
Script end 0.0211  903.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.9232140.0002
Check MTime0.00104.7733140.0001
Mysql Total
Database connection0.00104.818410.0010
Mysqli_queries0.003215.182530.0011
Looping result0.00000.122910.0000
Template Total0.00188.510.0018
Template load0.00104.695610.0010
Template processing0.00083.764310.0008
Override
Cache load0.00052.534410.0005
General
dbfile0.00031.395780.0000
String conversion0.00000.053040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs