first of all:
Thanks to everyone!
try 1: my idea
I've tryed one thing that didn't work (sob...):
I've done a chunk instead of template containing all TV needed to be processed to get the single slide and it worked for the single view.
for example a slide with an image (it's a little big cause it contains svg inline, and it uses italian in classes, cause i'm italian... ) :
<div id="slide_1" class="slide_singola" style="background-image: url([[*ImageFullUrl]]);">
<div class="descrizione_slide">
<div class="spaziami">[[*description]]</div>
<div class="contenitore_bott_slide">
<a href="JavaScript:void(0);" title="slide precedente" class="">
<div class="button sinistra_bottone" id="frecce_button" onclick="[[*prev_function]]">
<svg class="icon_container_button" version="1.0" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
<path class="icon_button" d="M28.708,43.007l-9.643-9.644c-0.754-0.753-0.754-1.973,0-2.727l9.643-9.643c0.753-0.753,1.974-0.753,2.727,0 s0.753,1.974,0,2.727l-6.351,6.351h18.487c1.065,0,1.929,0.862,1.929,1.928c0,1.065-0.863,1.929-1.929,1.929H25.084l6.351,6.351 C31.812,40.656,32,41.149,32,41.643c0,0.494-0.188,0.988-0.565,1.364C30.682,43.76,29.461,43.76,28.708,43.007"/>"/>
</svg>
</div>
</a>
<a href="JavaScript:void(0);" title="slide successiva" class="">
<div class="button destra_bottone" id="frecce_button" onclick="[[*next_function]]">
<svg class="icon_container_button" version="1.0" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
<path class="icon_button" d="M35.292,43.007l9.643-9.644c0.754-0.753,0.754-1.973,0-2.727l-9.643-9.643c-0.753-0.753-1.974-0.753-2.727,0 s-0.753,1.974,0,2.727l6.351,6.351H20.429c-1.065,0-1.929,0.862-1.929,1.928c0,1.065,0.863,1.929,1.929,1.929h18.487l-6.351,6.351 C32.188,40.656,32,41.149,32,41.643c0,0.494,0.188,0.988,0.565,1.364C33.318,43.76,34.539,43.76,35.292,43.007"/>"/>
</svg>
</div>
</a>
</div >
</div>
</div>
then i've created a template for the slideshow main page (id 17)
<div class="diapositive_base" id="diapositive_base">
[[getResources?
&tpl=`Slideshow1`
&parents=`17`
&depth=`2`
&limit=`5`
&includeContent=`1`
&includeTVs=`1`
&showHidden=`1`
&hideContainers=`1`
]]
</div>
<div class="logo_up_slide" onclick="tornaacasa()" style="position:fixed; background-color:rgba(0,0,0,0.6);"></div>
and a chunk (tpl) Slideshow1
but it's not processed
i've tryed Slideshow1
-> totally broken code...
probably is what is written here :
https://forums.modx.com/thread/?thread=31539&page=1 (was this what you are referring to, @BobRay? )
try 2: be brutal
so i uploaded a brutal php code in the root:
<div style="" class="diapositive_base" id="diapositive_base">
<?php
include ('index.php?id=18')
?>
<?php
include ('index.php?id=19')
?>
<?php
include ('index.php?id=20')
?>
<?php
include ('index.php?id=21')
?>
<?php
include ('index.php?id=22')
?>
</div>
-> nothing shows there...
next try
now i'm gonna try other options all of u suggested ... (thanks paulp and scottwell! ) but my intent is to have a simple way to do a page and include it as a slide in the slideshow...
last chance
if I'd no simple output i'm gonna use ajax another time... (all site is already done with it...)
Does ajax inside a ajax gives problems? we will see...
Thanks to all - i'm gonna tell about will happen!