Forums / General / Contact Details

Contact Details

Author Message

Mike Sperrey

Wednesday 21 May 2008 6:58:11 am

Is it possible to have one page, where you have all the different contact info for your site (telephone numbers, emails, etc) and then be able to call on that information throughout your site in different place when needed?

This would mean if these details had to change, you would only need to update it in one place and not hunt down all the different locations of a telephone number or email address.

Gaetano Giunta

Wednesday 21 May 2008 9:33:02 am

This is eZ bread and butter: make a content object that stores that info, and then publish it in different nodes in your content tree. If you prefer to make a complete page where all your info is shown, you can use virtual urls to have it appear also "at different places"

Principal Consultant International Business
Member of the Community Project Board

Mark Emms

Thursday 22 May 2008 1:41:40 am

That's great for having a Contact page with details on it that you can republish as a whole page - I'm sure lots of us do exactly that.

Also you can fetch the attributes of the object (e.g. Sales Telephone Number, address etc) by reference to the object's node id using template functions etc.

This is too technical for end users though who don't know how to use the template language - they want to be able to enter the information using an XML field and still have it updatable.

How about creating classes for telephone numbers, addresses etc., and publishing them as objects in their own right (organised into an appropriately named container class), these can then have embed-inline/inline templates etc. that make them appear nicely formatted when dropped into an XML field by the end user. This gives more flexibility in terms of which bits of the data are shown where.

Then it would be relatively straightforward to create a new object class and associated templates, which accesses these classes (and therefore remains up to date when contact details get changed) using the template language as your Contact Page which can then be republished wherever you like.

Or is there another way?

Tony Wood

Thursday 22 May 2008 2:15:25 am

Hi Mark,

You are right, having a specialised datatypes for Telephone numbers addresses would be really useful. It would mean the entire community would store addresses in a similar way. This would make CRM and Integration a lot easier. Especially as we are moving into an era of increased machine to machine readable information. I feel a standard is a must.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Mike Sperrey

Thursday 22 May 2008 3:35:32 am

Next version then maybe? or is there something out there that someone has built that will do the job?

eZ debug

Timing: Jan 18 2025 01:13:06
Script start
Timing: Jan 18 2025 01:13:06
Module start 'content'
Timing: Jan 18 2025 01:13:07
Module end 'content'
Timing: Jan 18 2025 01:13:07
Script end

Main resources:

Total runtime1.0116 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.5313180.8594
Module start 'content' 0.00670.8361 768.3906647.0234
Module end 'content' 0.84280.1687 1,415.4141337.0938
Script end 1.0115  1,752.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4670210.0002
Check MTime0.00170.1648210.0001
Mysql Total
Database connection0.00090.089110.0009
Mysqli_queries0.923891.31852040.0045
Looping result0.00250.25122020.0000
Template Total0.976896.620.4884
Template load0.00200.194920.0010
Template processing0.974896.365820.4874
Template load and register function0.00030.025110.0003
states
state_id_array0.00150.151210.0015
state_identifier_array0.00250.244020.0012
Override
Cache load0.00160.1570230.0001
Sytem overhead
Fetch class attribute can translate value0.00160.157850.0003
Fetch class attribute name0.00150.151580.0002
XML
Image XML parsing0.00230.229450.0005
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00600.5902390.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
5content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs