Forums / Developer / Create a corporate directory

Create a corporate directory

Author Message

Ken Nguyen

Monday 03 January 2011 8:38:37 am

Hello,

I want to create a corporate directory for my Intranet (standard search by name, general information,...) but I don't know how to do it. Could you give me please some ideas on how to proceed.

Thank you.

paul bolger

Tuesday 04 January 2011 12:25:30 am

Very generally, you'd make, or use an existing, content class to make an entry for each person. Then you would write templates to display the data in the way you need it to look. Searching can be integrated within the output templates.

Considerations before you begin:

Do you need any of these people to be able to log into the system? If so you need the content class to include the 'user' datatype.

Are they already listed in an LDAP database (MS Exchange or similar)? eZ allows integration with LDAP, but I'm not experienced with getting it to work.

Do you have a lot - say, over 50 - entries to add? If so you should investigate some sort of CSV/XML data importing. If you have a very large number you may want to check out eZfind, the 'industrial' search extension - but be aware it requires quite a bit more setting up than straight eZ Publish.

A bit of planning, and a bit of testing with sample data, can save you a lot of time later.

Paul Bolger

Ken Nguyen

Thursday 06 January 2011 12:01:02 am

Thank you for your reply.

To answer your questions, in fact I need these people to connect into the system.
They are in an LDAP database, but I tried to integrate with LDAP few months ago without success.
But it's not really a problem, we have no more than 50 employees in the company's manageable.

paul bolger

Thursday 06 January 2011 2:38:23 am

My feeling is that you should have another go at getting the LDAP integration to work.

The big problem for intranet type 'solutions' is getting people involved - if it involves another sign-in they'll just move on to something else, something more relevant to 'real work', even if using the intranet would improve their overall efficiency.

- And, if you get it to work properly it'll save a lot of maintenance time in the future.

Paul Bolger

eZ debug

Timing: Jan 18 2025 03:07:19
Script start
Timing: Jan 18 2025 03:07:19
Module start 'content'
Timing: Jan 18 2025 03:07:20
Module end 'content'
Timing: Jan 18 2025 03:07:20
Script end

Main resources:

Total runtime0.8186 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.8281180.8438
Module start 'content' 0.00670.7052 769.6719549.0469
Module end 'content' 0.71190.1067 1,318.7188336.7500
Script end 0.8185  1,655.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4964210.0002
Check MTime0.00160.2008210.0001
Mysql Total
Database connection0.00130.156510.0013
Mysqli_queries0.752591.91891970.0038
Looping result0.00160.19831950.0000
Template Total0.789896.520.3949
Template load0.00210.255220.0010
Template processing0.787796.224620.3939
Template load and register function0.00030.040110.0003
states
state_id_array0.00140.170410.0014
state_identifier_array0.00160.195220.0008
Override
Cache load0.00170.2118240.0001
Sytem overhead
Fetch class attribute can translate value0.00150.187030.0005
Fetch class attribute name0.00100.119050.0002
XML
Image XML parsing0.00090.106730.0003
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00410.4969270.0002
String conversion0.00000.000630.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
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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