set one field can not be seen by user but admin

Author Message

kevin wei

Friday 22 October 2004 6:26:22 pm

1. when creat a field during creating the class, there are a checkbox can control this field only can be visible to admin. so when user edit info in frontpage this field will not display. and admin can modify the value of this field in backend.

such as in bug report, users do not need to care the status (open,pending,close), but admin can set it according the current status.

2. in shop module, how can user see his order, and how admin set his order's status to (open,pending,delivering,close),so the user can know how it is going on with his order.

Balazs Halasy

Friday 22 October 2004 11:56:57 pm

1)
This can be achieved by setting up your user-side/public templates so that they do not show the attributes that should only be allowed for admin. There is unfortunately no control for this (by the way of checkboxes) in the class edit page.

2)
To view an order, fire up the following URL:
www.example.com/index.php/shop/orderview/<ordernumber>

...where ordernumber is the ID of the order.

As far as I know, we do not have a status for the orders at this time.

Balazs

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 16:27:23
Script start
Timing: Jan 18 2025 16:27:23
Module start 'layout'
Timing: Jan 18 2025 16:27:23
Module start 'content'
Timing: Jan 18 2025 16:27:24
Module end 'content'
Timing: Jan 18 2025 16:27:24
Script end

Main resources:

Total runtime0.6257 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.4922152.6406
Module start 'layout' 0.00520.0027 742.132839.4922
Module start 'content' 0.00780.6165 781.6250494.3438
Module end 'content' 0.62430.0014 1,275.96888.1250
Script end 0.6257  1,284.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5344160.0002
Check MTime0.00140.2178160.0001
Mysql Total
Database connection0.00050.086010.0005
Mysqli_queries0.579092.5385540.0107
Looping result0.00060.0958520.0000
Template Total0.594295.020.2971
Template load0.00210.340920.0011
Template processing0.592094.613020.2960
Template load and register function0.00020.027310.0002
states
state_id_array0.00070.117510.0007
state_identifier_array0.00120.190020.0006
Override
Cache load0.00170.2771160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.138220.0004
Fetch class attribute name0.00100.160530.0003
XML
Image XML parsing0.00060.096620.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00110.1721160.0001
String conversion0.00000.001340.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
2content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs