11 years ago
0
Topic

Hi everyone,

I'm looking to get a list within a list (some inception here), and then to apply some js on the all, so I need to get exactly the HTML I wanted. I created a SEBLOD template to get my fields in a list:

<ul> <li>...</li><li>....</li></ul>

It works but even by calling tmpl=raw I get many stuff before my list:

<script type="text/javascript">
JCck.Core.submit = function(task) { Joomla.submitform("search", document.getElementById("seblod_form")); }
</script><div class="cck_page cck-clrfix"><div><form action="/index.php?option=com_cck&amp;lang=fr" autocomplete="off" method="get" id="seblod_form" name="seblod_form"><div class="cck_page_search"></div><div class="clr"></div><div><input type="hidden" name="option" value="com_cck" /><input type="hidden" name="view" value="list" /><input type="hidden" name="Itemid" value="0" /><input type="hidden" name="tmpl" value="raw" /><input type="hidden" name="search" value="liste_des_titres_de_contenu_de_meme_type" /><input type="hidden" name="task" value="search" /></div></form>
because all that stuff is called in component/com_ccck/list/tmpl/default.php. So I created another template to display only my list and tried to call it by modifying the tmpl param in the URL:

index.php?option=com_cck&view=list&search=liste_des_titres_de_contenu_de_meme_type&task=search&fcat=326&lang=fr&tmpl=ajax

but unsuccessfully!

Would anyone know how to call a specific template for a seblod list?


In advance thanks for your answer!


Cyril

Get a VIP membership