[SOLVED] Article summarytemplate is not called in url

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Mich-adg
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 02, 2008 9:08 pm

[SOLVED] Article summarytemplate is not called in url

Post 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...!
Last edited by Mich-adg on Mon Apr 08, 2013 12:30 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Article summarytemplate is not called in url

Post by velden »

try 'cntnt01detailtemplate=standard'
Mich-adg
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 02, 2008 9:08 pm

Re: Article summarytemplate is not called in url

Post 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.
Post Reply

Return to “The Lounge”