We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6970
    • 19 Posts
    please, i dont know wtf, but i place a ditto on a site but modx does not parse it. (i think so)


    ive been asked to mod this site and make news section administrable.


    actually full site is just .html, so i will (once i get it working) rename modxs index.php > noticias.php
    *in the mean time > http://www.desmar.cl/index.php?id=1

    i added the template to modx so i can template docs.

    as you can see i just renamed modx default doc id=1 title to "Noticias" and all child docs
    will be the output for news section and asign the temp for the doc. blah blah blah...

    SO!

    i try to add the snippet call for the ditto and everythig goes ok when i add [!Ditto?!]

    BUT, if i add any parameter the snippet call wont get parsed. [!Ditto? &tpl=`tmp-noticias`!] (tmp-noticias chunk exists and has placeholders).

    never ever happened before.

    http://www.desmar.cl/index.php?id=1 (i will leade a [!Ditto?!] and a [!Ditto? &tpl=`tmp-noticias`!] to check differences.)

    please help me with these.
    i need it for yesterday.
    thanks!

    chunk tpl
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><p align="left"><a name="noticia3"></a><span class="textos-titulos-noticias">[*pagetitle*]</span></p></td>
    </tr>
    <tr>
    <td align="right" valign="top" class="textos-fecha-noticias">[+date+]</td>
    </tr>
    <tr> [*#content*] </tr>
    <tr>
    <td class="textos-termino-noticias">&nbsp;</td>
    </tr>
    </table></td>
    </tr>


    fixed!

    <tr> [*#content*] </tr>

    must be

    <tr> [+content+] </tr>

    This discussion is closed to further replies. Keep calm and carry on.