Share » Forums » Developer » Site Personalization and Problem with...

Site Personalization and Problem with Cache

Site Personalization and Problem with Cache

Monday 22 June 2009 2:01:05 am - 7 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu