Forums / Setup & design / How to use the iphone templates?

How to use the iphone templates?

Author Message

Marco Zinn

Monday 01 February 2010 11:57:58 am

Hi there,

in http://ez.no/ezflow/portal_management , it says "eZ Flow comes with a set of templates optimized for the iPhone."

Nice, great... but where can we find them or how can we use these templates??

After installing ez 4.2 with the most current ezflow package and demo data, there is a siteaccess "iphone". Can can access it through http://<DOMAIN>/iphone/ ... and are greeted by a one-line error message.

The message is shown, because the siteaccess is not configured at all and is unable to connect to the database.

How can we use the "comes with" templates? Why are they not enabled by default (e.g. with the iphone siteaccess), when this is one of the big announced features of ezflow? Or did i just miss something?

Searching the ez websites did not bring up anything other than the press releases in all languages. :(

Any help is appreciated.

Marco
http://www.hyperroad-design.com

Doug Brethower

Tuesday 02 February 2010 5:10:27 am

Files in 4.2 ezflow version - the answer to the "find them"

/settings/siteaccess/iphone -ini.appends

/extension/ezflow/settings/siteaccess/iphone - ini.appends

/extension/ezflow/design/iphone -- the meat

/var/storage/packages/eZ-systems/ezflow_extension/ezextension/ezflow/settings/siteaccess/iphone --packaged files

Page 18 of ezflow 1.1 setup pdf has general overview and links.

Is the siteaccess enabled?

Doug Brethower
Apple Certified Technical Consultant, Southwest, MO USA
http://share.ez.no/directory/companies/lakedata.net

Marco Zinn

Wednesday 03 February 2010 10:40:11 am

Hello Doug and all,

thanks for the fast reply. For others, who may be interessted: The official documentation for ezflow (including the said setup guide) can be found here: http://ez.no/doc/extensions/ez_flow

I had found the files in the settings and extension directory and the siteaccess was enabled.

I'm currently retrying the whole installation process and will document it:

1. Download ez 4.2 and install it. During Installation, choose the site package "eZ Flow (ver. 2.0-0)", which will be downloaded to the package directory and install nicely. I chose German language and mapped the english demo content to German. I also renamed to user siteaccess name to "ger" (instead of ezflow_site or whatever was the default)

2. You will end up with a nice ezflow site. User URL is something like http://DOMAINS.TLD/ger

3. You will have a siteaccess named "iphone". Calling it with http://DOMAINS.TLD/iphone will give you a nice "An unexpected error has occurred. Please contact the webmaster." message. Great. That's what worked for me out of the box :(

4. Looking at the error.log, you'll find, that ez cannot open the DB connection. To fix that, copy the Block [DatabaseSettings] from settings/siteaccess/ezflow_site_admin/site.ini.append.php into settings/override/site.ini.append.php and reload the page. This should define the same DB connection for all siteaccesses and get rid of the "unexpected error" message. In my case, it shows me a login screen (some permission issue?). Now, log in with the admin account.

5. You will see the frontpage in the iphone template. Unfortunetly, this seems to be complety useless: I shows the names (or types) of the frontpage, but no content, and not a single link, and no image or so. You can switch to a "Non-iphone optimized site", which brings you to /ger ... that works great

6. Browsing the site using the "ger" (or ezflow) siteaccess works great... but whenever i change the siteaccess name in the URL from "ger" to "iphone", i get something like "Module not found... The requested module 'Conference' does not exist".

Somebody got some idea?

I made it work in some other installation by manually copying lots of INI settings from "ger" to the "iphone" siteaccess settings directory and "only" using "iphone" as the primary design. But shouldn't it work out of the box?

[Edit:] Progress report:

7. To get rid of the login screen, go to your admin siteaccess and edit the "anonymous" role (http://DOMAIN/ezflow_site_admin/role/view/1). Make sure you add the siteaccess "iphone" to the user/login policy. For me, it reads "user login SiteAccess (ger, iphone)". You will probably have "ezflow_site" instead of ger

8. The missing content (in 5.+6. above) was a result of not using english language. English is the default content language, but I had no english content. So, make sure to copy the Block [RegionalSettings] along with the [DatabaseSettings] block in step 4. Please note: This will make you whole setup mono-lingual! In any case, you will need to decide on the "language" of your iphone siteaccess (or create one for each language)

9. This will make you end up with an "iphone frontpage", which now has some content, but still is pretty useless: You cannot navigate from there! But, when you navigate using the normale siteaccess and switch to "iphone" then (modify the URL!), you will get a more or less nice iphone view of your content. I think, there is a template (or templates) missing for the frontpage/it's building blocks.

10. Apart from the non-functional start page (or other "frontpage" nodes), i get an error about a missing template "tiny_image.tpl". Don't know, where this would be used. Also, the video playback in /Conference/Movies/eZ-Conference-2009-video does not work. I assume, the template is "empty" because the iphone does not support flash.

So, i hope, this is of use for somebody else.

I'm happy to see, that there are iphone template and most of them work.

I'm very unhappy, that this seems to be one of the many "hidden features" (but praised in product news/demonstrations) of ez, that simply do not work out of the box. I'm also disappointed, that the frontpage templates seem to be missing. "iphone templates" are promoted along with ezflow... To bad, that the frontpage of any ezflow installation does not work then :(

Maybe somebody can try this with a plain english setup... In many cases, this works, as the whole setup is easier.

Marco
http://www.hyperroad-design.com

Doug Brethower

Thursday 04 February 2010 5:31:34 am

Followed along to step 5 and it works great. Looked at it from small browser window and it displays nicely optimized on the small screen with link back to main site.

I cannot speak for the eZ Flow developers, but I believe from that point you are going to have to "smallify" your site designs as you see fit. How the contents should appear on the small screen is a design decision, not something that may be easily automated. At least not yet. With eZ, who knows what the future may hold.

Thanks for keeping at it, and especially for sharing back!

Doug Brethower
Apple Certified Technical Consultant, Southwest, MO USA
http://share.ez.no/directory/companies/lakedata.net

eZ debug

Timing: Jan 18 2025 00:03:55
Script start
Timing: Jan 18 2025 00:03:55
Module start 'content'
Timing: Jan 18 2025 00:03:56
Module end 'content'
Timing: Jan 18 2025 00:03:56
Script end

Main resources:

Total runtime1.4726 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.8438180.8359
Module start 'content' 0.00741.3376 769.6797585.7031
Module end 'content' 1.34500.1276 1,355.3828340.7734
Script end 1.4726  1,696.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2883210.0002
Check MTime0.00150.0987210.0001
Mysql Total
Database connection0.00060.043910.0006
Mysqli_queries1.393794.63651990.0070
Looping result0.00200.13271970.0000
Template Total1.436897.620.7184
Template load0.00210.144420.0011
Template processing1.434797.421120.7173
Template load and register function0.00010.006110.0001
states
state_id_array0.00160.112010.0016
state_identifier_array0.00160.110620.0008
Override
Cache load0.00190.1285510.0000
Sytem overhead
Fetch class attribute can translate value0.00120.080730.0004
Fetch class attribute name0.00090.063560.0002
XML
Image XML parsing0.00130.089630.0004
class_abstraction
Instantiating content class attribute0.00000.001180.0000
General
dbfile0.00420.2849340.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs