Help: Have some newbie issues?

Author Message

Tore Krudtaa

Tuesday 23 December 2008 5:26:28 am

Hi.

Installed version 4.0.1 on my XP on localhost yesterday.

******************
Issue 1
******************

I have two languages installed for the frontend. English and Norwegian.
How do I set eZpublish to autodetect browser language for first time visitors?

If visitors browser has [en] (or any other english flavour) first in list of Language preference list (or similar), then I want the English language version of the site to show up first for that visitor on his first visit, if it was e.g. [no] (or any other Norwegian flavour) then show the Norwegian language version of the site.

If not possible out of the box, is there any plugin or workaround to make this work?

I have read the last reply in this thread:
http://ez.no/developer/forum/setup_design/auto_detect_language_from_browser_accept_language/re_auto_detect_language_from_browser_accept_la__1

Is the above solution how it should be done today, or is it some better way to control this behaviour from the backend, or a plugin?

*****************
Issue 1.5
****************

I want to languages on the frontend. English and Norwegian.
Is it possible to have separate content structures for the two languages?
Please direct me do online docs describing how to implement this using eZpublish?

*******************
Issue 2
*******************

I notice that doing most stuff on the backend causes very long waits from I click a button to eZpublish get done with whatever it is doing..... very very long time before data is displayed in my browser.

Any clue what can cause this.... as it is the backend is allmost useless.... because of the long response times.

That said.... userinterface looks very nice indeed... and look forward to continue evaluating this puppy, if I can issue 2 fixed that is :)

******************
Issue 3
******************

Can I use FCKeditor with eZpublish?
If so please show me a related link.

***************
Issue 4
***************

Is it possible to use Simple Machines Forum with eZpublish frontend?
If possible, the please show me a rel. link.

****************
Issue 5
*****************

I want to build some customized stuff to show in content area of a page when end-user click a menuitem.

I want then to run some custom queries against, custom database tables.... and display
the data as I want within the content area....

Would appreciate some links to tutorials and/or books about this, if it is possible...

Regards

André R.

Tuesday 23 December 2008 2:36:32 pm

1: There is not something out of the box for this, so adapt the second proposal in the other thread. The first proposal is not technically a good one, using redirects from templates is like redirecting a boat from Paris to New York over to London when it has reached the Statue of Liberty..

1.5 This is possible, but there are no on line description for it in the docs. Search for Multisite setup in the forums, this will be the same since you won't use a 1-1 relationship for eng-nor.

2. clues:
* You are using windows, Linux / Solaris / Freebsd 7 will mostly perform 4-10 times better depending on how well the setups are tweaked.
* Your on a notebook? eZ Publish is somewhat filesystem limited because of the heavy use of cache on filesystem*, witch explains most of the diff between Windows and Linux, if you're on a notebook pc with slow harddrive then the gain of using a *NIX server is a lot more.
* Are you using a php accelerator? apc is recommended for php 5.x, this will give you a 2-3 times speedup depending on your tweaks.
* Is it a old pc your running on?
* Is cache on? And all development mose is off? (this should be ok by default though)

How to set up apc, tweak apache / php / apc is better explained else where.
* eZ Publish 4.1 will include several tweaks to improve this for windows users by 2-3x, but *NIX is still ahead for the foreseeable future when it comes to php / eZ Publish performance.

3. Sure but you'll have to implement it, there is a old version somewhere in the contribution area that you can start with. It uses it's own xhtml datatype instead of the ezxml datatype, the latter already have a few ediors: Online Editor 4.x (eZ made) and Online Editor 5.x (based on TinyMCE) that are currently in rc.
http://ez.no/developer/contribs/applications/ez_oe_mce

4. Sure, but you'll have to make a connector, you can base it on the one for fluxBB used on the fedora fr sites, or switch forum and use the extensions as it is. There should also be some other connectors in the contribution area.
http://projects.ez.no/ezfluxbb

5. You need to know how to: create custom tables for specific pages (overrides, see http://ez.no/ezpublish/documentation/building_an_ez_publish_site/prerequisits), use your own php code in templates (template operator or template function, see any extesnion with template operator) and optionally work with the eZ Publish php API to reuse db connections/settings and so on(search for code that use $db = eZDb::instance() to see how it is used).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 19 2025 03:39:00
Script start
Timing: Jan 19 2025 03:39:00
Module start 'layout'
Timing: Jan 19 2025 03:39:00
Module start 'content'
Timing: Jan 19 2025 03:39:01
Module end 'content'
Timing: Jan 19 2025 03:39:01
Script end

Main resources:

Total runtime1.0063 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.0053 589.2734152.6406
Module start 'layout' 0.00540.0073 741.914139.4766
Module start 'content' 0.01260.9862 781.3906559.9766
Module end 'content' 0.99880.0074 1,341.367212.1484
Script end 1.0063  1,353.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00900.8967160.0006
Check MTime0.00150.1515160.0001
Mysql Total
Database connection0.00080.075610.0008
Mysqli_queries0.919791.3930540.0170
Looping result0.00070.0671520.0000
Template Total0.959395.320.4796
Template load0.00240.239520.0012
Template processing0.956895.082320.4784
Template load and register function0.00020.024010.0002
states
state_id_array0.00170.166410.0017
state_identifier_array0.00120.114620.0006
Override
Cache load0.00180.1807620.0000
Sytem overhead
Fetch class attribute can translate value0.00070.073920.0004
Fetch class attribute name0.00140.144030.0005
XML
Image XML parsing0.00080.080820.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00230.2327170.0001
String conversion0.00000.001840.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
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
16content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs