Site Personalization and Problem with Cache

Author Message

Mehul Saiya

Monday 22 June 2009 2:01:05 am

Hi,

Can some one guide me how can I personalize the Ez Webin Site for creating my Personal Site.
I am looking to create a basic site where I can include CSS and Javscript (any DHTML function I have created).

Also, guide me regarding Cache section in EZ Publish because When I do Clear Cache -
I am seeing:

extension/ezwebin/design/ezwebin/templates/pagelayout.tpl

extension/ezwebin/design/ezwebin/templates/page_head.tpl

extension/ezwebin/design/ezwebin/templates/link.tpl

extension/ezwebin/design/ezwebin/templates/page_head_style.tpl

extension/ezwebin/design/ezwebin/templates/page_head_script.tpl

extension/ezwebin/design/ezwebin/templates/page_header.tpl

......

Various templates file paths on all pages of site.

Thanks

Seb gaillard

Monday 22 June 2009 2:37:17 am

Hi,

I've never used eZ webin but I think that you can change the look of your site by modifying the <head></head> section of the pagelayout (but there is other solution like creating your own extension design).

<style type="text/css">
    @import url({"stylesheets/core.css"|ezdesign(no)});
    @import url({"stylesheets/debug.css"|ezdesign(no)});
    @import url({"stylesheets/pagelayout.css"|ezdesign(no)});
    @import url({"stylesheets/content.css"|ezdesign(no)});
    @import url({"stylesheets/websitetoolbar.css"|ezdesign(no)});
    {foreach ezini( 'StylesheetSettings', 'CSSFileList', 'design.ini' ) as $css_file}
    @import url({concat( 'stylesheets/', $css_file )|ezdesign});
    {/foreach}
    @import url({ezini('StylesheetSettings','ClassesCSS','design.ini')|ezroot(no)});
    @import url({ezini('StylesheetSettings','SiteCSS','design.ini')|ezroot(no)});
    /* ADD YOUR CSS FILE HERE */
</style>
<link rel="stylesheet" type="text/css" href={"stylesheets/print.css"|ezdesign} media="print" />
<!-- IE conditional comments; for bug fixes for different IE versions -->
<!--[if IE 5]>     <style type="text/css"> @import url({"stylesheets/browsers/ie5.css"|ezdesign(no)});    </style> <![endif]-->
<!--[if lte IE 7]> <style type="text/css"> @import url({"stylesheets/browsers/ie7lte.css"|ezdesign(no)}); </style> <![endif]-->
{foreach ezini( 'JavaScriptSettings', 'JavaScriptList', 'design.ini' ) as $script}
    <script language="javascript" type="text/javascript" src={concat( 'javascript/', $script )|ezdesign}></script>
{/foreach}
 /* ADD YOUR JS FILE HERE */

 

For the display of :
extension/ezwebin/design/ezwebin/templates/pagelayout.tpl
extension/ezwebin/design/ezwebin/templates/page_head.tpl
extension/ezwebin/design/ezwebin/templates/link.tpl
extension/ezwebin/design/ezwebin/templates/page_head_style.tpl
extension/ezwebin/design/ezwebin/templates/page_head_script.tpl
extension/ezwebin/design/ezwebin/templates/page_header.tpl

It's because the "inline template debug" is activited for your siteaccess.

Seb

Mehul Saiya

Monday 22 June 2009 10:16:13 pm

Thanks Seb,

I have checked "inline template debug" is not activited for our siteaccess (Global override).
Still I am getting the templates file paths on all pages of site.

Also, I tried modifying Pagelayout for personalization and it is working fine.

Please guide me in creating own extension design.

Mehul

Seb gaillard

Tuesday 23 June 2009 1:56:26 am

Hi Mehul,

it's a little bit difficult to explain you how to make an extension.
You can read this:
http://ez.no/developer/articles/an_introduction_to_developing_ez_publish_extensions

But it's not obligatory to use extension. You can use the override system for creating your own pagelayout and other templates.

http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_override_system

I hope that these links should help you.

Seb

Mehul Saiya

Tuesday 23 June 2009 2:08:05 am

Thanks Seb,

Created the basic Extension Successfully.

But, still having problem with Clear Cache thing.

I have checked "inline template debug" is not activited for our siteaccess (Global override).
Not seeing any template file paths, If I don't clear cache.

Am not able to understand how Cache is working in Ez Publish (4.1.0).

Mehul

Seb gaillard

Tuesday 23 June 2009 2:20:59 am

And when you disable all template debug?

Mehul Saiya

Tuesday 23 June 2009 2:40:30 am

All this Settings are disabled:

Debug output
Template debug
Inline template debug
List of used templates

Seb Gaillard

Wednesday 24 June 2009 2:08:20 am

Ok, I don't know how can I help you to find an issue to your problem.
Tell me if you resolve it.

Good luck,

Seb

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 18 2025 11:21:43
Script start
Timing: Jan 18 2025 11:21:43
Module start 'layout'
Timing: Jan 18 2025 11:21:43
Module start 'content'
Timing: Jan 18 2025 11:21:44
Module end 'content'
Timing: Jan 18 2025 11:21:44
Script end

Main resources:

Total runtime0.7867 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.1797152.6406
Module start 'layout' 0.00690.0032 741.820339.4766
Module start 'content' 0.01010.7750 781.2969572.1719
Module end 'content' 0.78510.0016 1,353.468816.1250
Script end 0.7867  1,369.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4309160.0002
Check MTime0.00140.1803160.0001
Mysql Total
Database connection0.00100.129610.0010
Mysqli_queries0.713490.6826740.0096
Looping result0.00090.1127720.0000
Template Total0.748495.120.3742
Template load0.00210.265420.0010
Template processing0.746394.869820.3732
Template load and register function0.00020.030510.0002
states
state_id_array0.00230.295510.0023
state_identifier_array0.00100.121420.0005
Override
Cache load0.00220.2778680.0000
Sytem overhead
Fetch class attribute can translate value0.00180.226230.0006
Fetch class attribute name0.00100.128180.0001
XML
Image XML parsing0.00070.090030.0002
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00070.0906100.0001
String conversion0.00000.001040.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs