Share » Forums » Developer » Template operator called many times..

Template operator called many times..

Template operator called many times..

Monday 17 August 2009 12:45:21 am - 2 replies

Modified on Monday 17 August 2009 12:50:09 am by Julien JOSEPH-AGATHE

Author Message

Damien Pobel

Monday 17 August 2009 2:59:53 am

Hi Julien,

It's probably because your page uses some missing components (images, CSS, JS, ...) so when you load your page your browser loads two 404 pages that also uses your template operator.

You should check the error.log of the web server or try to use the Network tab of Firebug extension too see what components are missing.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

André R.

Monday 17 August 2009 4:13:56 am

eZSys::indexFile() is not a function to get current siteaccess, but index file.....
Example on getting current siteaccess name:

$siteAccessName = isset( $GLOBALS['eZCurrentAccess']['name'] ) ? $GLOBALS['eZCurrentAccess']['name'] : null;

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

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

36 542 Users on board!

Forums menu