i found how to do.
i recover a javascript function :
function addOnloadEvent(fnc){
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", fnc, false );
else if ( typeof window.attachEvent != "undefined" ) {
window.attachEvent( "onload", fnc );
}
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
window[fnc]();
};
}
else
window.onload = fnc;
}
}
and in page core/model/modx/processsors/element/tv/renders/web/output/googlemap.php
i change the code to :
addOnloadEvent( function() {GTV.createMap('.$j.',"'.$TextDsFenetre.'");});
$TextDsFenetre is the text for the popup in googlemap. because when a call this template variable in the chunk with getResources, it’s the text of the parent page. but i want it’s the text of children pages
$table = $modx->getFullTableName('site_tmplvar_contentvalues');
$result=$modx->db->select('`contentid`',$table,'value="'.$value.'"');
$row = $modx->db->getRow($result);
$docId=$row[contentid];
$TextDsFenetreDE =$modx->getObject('modResource',$docId);
$DESC = $TextDsFenetreDE->get('description');
$pagetitle = $TextDsFenetreDE->get('pagetitle');
$TextDsFenetre = "<strong>".$pagetitle."</strong><br />".$DESC;
do not forget change throughout the code :
to
for the
googlemap with fade jquery not work, use the position left in absolute. left:-9999 and left:0
if it is not clear ask me