eznavigation and the content object "user"

Author Message

Volker Lenz

Saturday 29 March 2003 4:19:51 am

It is impossible to activate the user-tab in the admin console. Thus, you cannot access functions like role customization via the ezp3 admin UI. The reason for this is the incorrect use of eznavigationpart-flags in the admin-template. When you press the tab link to browse the user listing, you actually request a listing of content objects and make ezp choose the ez-content-navigationpart-flag. There has to be done something about it. For the time being, you may help yourself by placing the following code snippet somewhere in your /kernel/content/module.php:

$ViewList["user"] = array(
"functions" => array( 'read' ),
"default_navigation_part" => 'ezusernavigationpart',
"script" => "view.php",
"params" => array( "ViewMode", "NodeID", "LanguageCode" ),
"unordered_params" => array( "language" => "Language",
"offset" => "Offset" )
);

This opens the possibility to navigate URLs of the type /content/user/node_id, using the view-module function as in normal content/view/... operations, but with the difference that the chosen navigation part points to users and not to ordinary content objects.

In addition to the code enhancement described above, you have to edit two admin-templates, i.e.

/design/admin/templates/parts/user/menu.tpl

and

/design/admin/templates/pagelayout.tpl.

Replace the odd URL /content/view/full/5/ in both files with the new one
/content/user/full/5/.

You are done.

Jan Borsodi

Saturday 29 March 2003 5:37:06 am

If you can't reach the user functions in the admin it just means that the site isn't correctly setup (or has old data). Here's how you get proper user navigation.

1. Create a user section, or if one exists edit it.
2. Set the navgiation part to user for the section.
3. Assign the section to the root of the user tree, for now you have to change the url to /content/browse/5 to get to the user tree when the browser appears.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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

Main resources:

Total runtime0.6714 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.0050 588.0469152.6406
Module start 'layout' 0.00500.0022 740.687539.4766
Module start 'content' 0.00720.6627 780.1641532.6016
Module end 'content' 0.66990.0015 1,312.765612.1250
Script end 0.6714  1,324.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4715160.0002
Check MTime0.00130.1910160.0001
Mysql Total
Database connection0.00060.092510.0006
Mysqli_queries0.621792.5908540.0115
Looping result0.00050.0804520.0000
Template Total0.644095.920.3220
Template load0.00210.317520.0011
Template processing0.641995.603120.3210
Template load and register function0.00010.014210.0001
states
state_id_array0.00090.134310.0009
state_identifier_array0.00090.129920.0004
Override
Cache load0.00180.2622270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.088020.0003
Fetch class attribute name0.00100.151840.0003
XML
Image XML parsing0.00100.152220.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00100.1482230.0000
String conversion0.00000.001240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs