Page 1 of 1

[SOLVED] Article summarytemplate is not called in url

Posted: Mon Apr 08, 2013 11:06 am
by Mich-adg
Hi,
i actually work on a website wich display articles summaries and details with ajax (without reloading the page).
I have a problem with calling a specific summarytemplate in line below:

Code: Select all

var tmp = "index.php?mact=News,cntnt01,default,0&cntnt01category_id={/literal}{$entry->category_id}{literal}&cntnt01returnid=15&showtemplate=false&summarytemplate=standard";
The "standard" summarytemplate is not called, but the Default one.

I can't see where's the problem.

This i my complete code (it's a summary template wich close a zoomed gallery image and then must display the "standard" summarytemplate in a div):

Code: Select all

{literal}
<__script__ type='text/javascript'>
/* <![CDATA[ */

   function ajax_load(dest) {
      $(dest).fadeOut('slow', function() { 
         $(dest).empty();  
         var tmp = "index.php?mact=News,cntnt01,default,0&cntnt01category_id={/literal}{$entry->category_id}{literal}&cntnt01returnid=15&showtemplate=false&summarytemplate=standard";
         var tmp2 = tmp.replace(/amp;/g,'');
         $(dest).load(tmp2, function() { $(dest).fadeIn('slow'); init(); });
      });
   }

/* ]]> */
</__script>
{/literal}

{assign var=chemin value="`$entry->category`/`$entry->extra`"}
{Gallery dir=$chemin}

<a onclick="ajax_load('.centre'); return false;" href="#" class="btn_close"></a>
Thx for any help...!

Re: Article summarytemplate is not called in url

Posted: Mon Apr 08, 2013 11:37 am
by velden
try 'cntnt01detailtemplate=standard'

Re: Article summarytemplate is not called in url

Posted: Mon Apr 08, 2013 12:29 pm
by Mich-adg
Thanks !! It works with 'cntnt01summarytemplate=standard' !! :)

I tried to add this too '&cntnt01sortby=news_title', so i understand now i need to add 'cntnt01' before each option.