Handling users with templates.

Author Message

Paul Forsyth

Thursday 30 January 2003 3:27:24 pm

Hi,

Im progressing with ez and am looking at adding users, where each user will have
custom content that they can create/edit. Im having trouble finding the information I
need to allow users to handled correctly within the ez template language. I've seen
examples on sdk.ez for handling such things within the kernel but i haven't made
the connection yet with how to handle this within templates.

I can get a user to log in but what object and attributes do i access within templates
in order to determine that particular user has logged in so that i can insert a switch
statement to serve content? In addition how can i add this user information to the fetch statement
to return content belonging to that user?

I can say more here but I want to start simple and understand the basics :)

Many thanks

Paul

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 05:05:51
Script start
Timing: Jan 18 2025 05:05:51
Module start 'layout'
Timing: Jan 18 2025 05:05:51
Module start 'content'
Timing: Jan 18 2025 05:05:52
Module end 'content'
Timing: Jan 18 2025 05:05:52
Script end

Main resources:

Total runtime0.7962 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0313152.6406
Module start 'layout' 0.00730.0043 740.671939.4766
Module start 'content' 0.01160.7834 780.1484402.6563
Module end 'content' 0.79500.0012 1,182.80478.1484
Script end 0.7962  1,190.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5060160.0003
Check MTime0.00140.1742160.0001
Mysql Total
Database connection0.00150.185510.0015
Mysqli_queries0.755394.8660460.0164
Looping result0.00050.0635440.0000
Template Total0.756995.120.3784
Template load0.00210.266020.0011
Template processing0.754894.793020.3774
Template load and register function0.00030.036010.0003
states
state_id_array0.00170.216410.0017
state_identifier_array0.00120.146120.0006
Override
Cache load0.00170.2120160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.117410.0009
Fetch class attribute name0.00100.119910.0010
XML
Image XML parsing0.00010.017510.0001
class_abstraction
Instantiating content class attribute0.00000.000910.0000
General
dbfile0.00060.0748100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs