Sample Application

Author Message

Chetan Arora

Monday 25 June 2007 9:55:25 am

Hi,
I have been trying to set up a 2-3 page website using Ez publish .. but with no success , gone through a no of tutorials and the techical manual .. most of them are either too verbose or too little. Can somebody please point to a neat solution where I can set up a sample application .. preferable with a DB access which explains the config files to be edited

Thx in advance.

André R.

Tuesday 26 June 2007 2:46:47 am

If you specify a bit more on what you have problems with it would be easier to help out.

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

Chetan Arora

Tuesday 26 June 2007 6:51:04 am

The problem is I have to build a website.. I have a protype of a website written in jsp. I want to do it using Ezpublish.

How do I begin ?? I have read the tutorials but still not sure..

There is some custom php code that will go in too.

To further simplify, I want to start with building a simple login /welcome page application

You have login page, enter user name and password, form is posted, information validated against a DB and welcome page comes.

No Style , no css at the moment.

Something of the type http://ez.no/ezpublish/documentation/building_an_ez_publish_site

But this is for 3.5 and I am using 3.9

Cheers

André R.

Tuesday 26 June 2007 7:07:27 am

If you have set up your site with 3.9+ with the website interface and english language you can accomplish this by modifying the settings/siteaccess/eng/site.ini.append.php with the following settings:

[SiteAccessSettings]
RequireUserLogin=true

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

Chetan Arora

Wednesday 27 June 2007 1:44:59 am

This would detemine that the user has to log in everytime thje website is visited.

What I mean to ask is shall I start by creating a new folder in 'siteacces' say 'my_website' and then writing files '*.overide.ini.php ' and then writing my own pagelayout.tpl and also specifying in the ini files which DB to use .. (as I want to do a login page)

If yes, how would I make sure that in the admin interface , 'my_website' appears in the siteaccess drowdown .

I did the above steps and was able to aceess something like

http://localhost/my_website

but was lost when I went to the admin interface as 'my_website' was not in the site access dropdown.

Could you point to OR list the steps reqd to setting this up..

I mean if I have to create new folder 'my_website' in siteaccess . I think we will have to create the same folder(my_website) inside 'design' and the 'var' folders.

Thanks..

André R.

Wednesday 27 June 2007 1:56:16 am


>If yes, how would I make sure that in the admin interface , 'my_website' appears in the siteaccess drowdown
This is controlled by a setting called RelatedSiteAccessList, its for setting witch siteaccesses belong to each other (use the same db).

[SiteAccessSettings]
RelatedSiteAccessList[]
RelatedSiteAccessList[]=mysite
RelatedSiteAccessList[]=mysite_admin

>I mean if I create new folder 'my_website' in siteaccess . That would also be created inside 'design' and the 'var' folders.

design ( [DesignSettings] ) and var ( [FileSettings] ) is specified in its own settings inside site.ini.append.php, so siteaceesses that are related(use same db) should share the same var and cache directory. This makes it easier if you need to clear cache fro the frontpage from admin siteaccess and so on.

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 20 2025 06:44:31
Script start
Timing: Jan 20 2025 06:44:31
Module start 'layout'
Timing: Jan 20 2025 06:44:31
Module start 'content'
Timing: Jan 20 2025 06:44:32
Module end 'content'
Timing: Jan 20 2025 06:44:32
Script end

Main resources:

Total runtime0.8312 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1328152.6094
Module start 'layout' 0.00510.0037 741.742239.4141
Module start 'content' 0.00880.8209 781.1563575.8125
Module end 'content' 0.82970.0015 1,356.968816.1875
Script end 0.8311  1,373.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3956160.0002
Check MTime0.00130.1590160.0001
Mysql Total
Database connection0.00080.093910.0008
Mysqli_queries0.769392.5567660.0117
Looping result0.00060.0729640.0000
Template Total0.801196.420.4006
Template load0.00180.211120.0009
Template processing0.799396.168820.3997
Template load and register function0.00020.025810.0002
states
state_id_array0.00080.101110.0008
state_identifier_array0.00100.121220.0005
Override
Cache load0.00160.1899410.0000
Sytem overhead
Fetch class attribute can translate value0.00050.061820.0003
Fetch class attribute name0.00100.116870.0001
XML
Image XML parsing0.00070.085420.0004
class_abstraction
Instantiating content class attribute0.00000.002490.0000
General
dbfile0.00080.1011170.0000
String conversion0.00000.001440.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs