Forums / Developer / Site Personalization and Problem with Cache

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

eZ debug

Timing: Jan 18 2025 15:01:12
Script start
Timing: Jan 18 2025 15:01:12
Module start 'content'
Timing: Jan 18 2025 15:01:13
Module end 'content'
Timing: Jan 18 2025 15:01:13
Script end

Main resources:

Total runtime1.2145 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.8438180.8125
Module start 'content' 0.00571.0533 768.6563577.2656
Module end 'content' 1.05890.1555 1,345.9219341.7813
Script end 1.2145  1,687.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3319210.0002
Check MTime0.00140.1156210.0001
Mysql Total
Database connection0.00070.054910.0007
Mysqli_queries1.133293.30692110.0054
Looping result0.00220.17922090.0000
Template Total1.187397.820.5937
Template load0.00240.193920.0012
Template processing1.185097.567320.5925
Template load and register function0.00010.011210.0001
states
state_id_array0.00080.068910.0008
state_identifier_array0.00130.108420.0007
Override
Cache load0.00210.1761680.0000
Sytem overhead
Fetch class attribute can translate value0.00130.110540.0003
Fetch class attribute name0.00110.094180.0001
XML
Image XML parsing0.00060.052940.0002
class_abstraction
Instantiating content class attribute0.00000.001180.0000
General
dbfile0.00480.3942210.0002
String conversion0.00000.000330.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs