Share » Forums » General » Xajax not loading

Xajax not loading

Xajax not loading

Wednesday 02 April 2008 9:16:00 am - 3 replies

Author Message

Kristof Coomans

Thursday 03 April 2008 5:15:14 am

Hi

Had private talk with Massimo and he was able to solve the problem already.

The debug output says that it was unable to find the xajax_javascript operator. Apparently one of the other extensions or settings/override/site.ini.append.php had a setting that clears the array used for template function/operator autoload paths:

[TemplateSettings]
AutoloadPathList[]

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jorge estévez

Thursday 19 June 2008 7:58:45 am

Hi anyone
This is my problem....

I already have my site finished, but now I’m trying to plug it with xajax 1.1.
I have this PHP code (from the eZ forum):

function xxxx($object_id) {

// HTTP Response
$objResponse = new xajaxResponse();

// template init
$tpl =& templateInit();

// Add Variable to the template
$tpl->setVariable(’object_id’, $object_id);

// fetch template
$html = $tpl->fetch(
“extension/mod_myextension/design/standard/templates/foo/bar.tpl” );

$objResponse->addAssign(”mydiv”, “innerHTML”, $html);

// response
return $objResponse;
}

I need to know where to write this code, and how can I invoke this function from any of my links, given the objectID of the node which content will be shown.
Plase, any hints will be really appreciated because we are almost in deadline of our project.
thanks in advance,
Marcel

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Mickael Robin

Tuesday 25 November 2008 3:05:52 am

Another "tip" for ezxajax troobleshooting : don't forget to add the pagelayout code below in the head part of <b>every pagelayout.tpl you use</b> (ie. don't forget \design\admin\templates\pagelayout.tpl )

As explained in the doc, the code is :

{cache-block ignore_content_expiry expiry=0}
{xajax_javascript()}
{/cache-block}
<c/ode>

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

36 542 Users on board!

Forums menu