Forums / Setup & design / eznavigation and the content object "user"

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

eZ debug

Timing: Jan 18 2025 01:14:23
Script start
Timing: Jan 18 2025 01:14:23
Module start 'content'
Timing: Jan 18 2025 01:14:24
Module end 'content'
Timing: Jan 18 2025 01:14:24
Script end

Main resources:

Total runtime1.2983 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.9609180.8125
Module start 'content' 0.00691.1632 769.7734537.6953
Module end 'content' 1.17010.1282 1,307.4688332.7422
Script end 1.2982  1,640.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2861210.0002
Check MTime0.00140.1094210.0001
Mysql Total
Database connection0.00090.065910.0009
Mysqli_queries1.230194.74561910.0064
Looping result0.00190.14881890.0000
Template Total1.268497.720.6342
Template load0.00200.154320.0010
Template processing1.266397.537420.6332
Template load and register function0.00010.008910.0001
states
state_id_array0.00160.120410.0016
state_identifier_array0.00130.102320.0007
Override
Cache load0.00170.1290270.0001
Sytem overhead
Fetch class attribute can translate value0.00120.095330.0004
Fetch class attribute name0.00090.070640.0002
XML
Image XML parsing0.00130.097530.0004
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00300.2326340.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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