Hello,
I'm using this kind of url to make an ajax request :
xmlhttp.open("GET", '../index.php?option=com_k2&view=itemlist&layout=category&task=category&id='+varId+'&format=raw',true);
and it's working fine.
My question is, is there any way to use a specific template by calling special parameters (i'd like my category view to only shows subcategories, item being only shown from thesubcategory), or creating a specific view that i could call from this.
What are the different views, layoust and tasks i can call and what are the differences ?
Also the prob is the same category may be called from another page where i would like it to show both subcategories and items (so i'd like to find an other than just setting a template override for the category itself).
Maybe use an extension like aditionnal categories for K2, set a custom template on that additionnal category and ajaw request on that additionnal category ?
What would be the best way to achieve something like this ?
(ps: would be awesome to have a specific CSS loaded for that specific view)
Thanks in advance and have a great day !
I'm using this kind of url to make an ajax request :
xmlhttp.open("GET", '../index.php?option=com_k2&view=itemlist&layout=category&task=category&id='+varId+'&format=raw',true);
and it's working fine.
My question is, is there any way to use a specific template by calling special parameters (i'd like my category view to only shows subcategories, item being only shown from thesubcategory), or creating a specific view that i could call from this.
What are the different views, layoust and tasks i can call and what are the differences ?
Also the prob is the same category may be called from another page where i would like it to show both subcategories and items (so i'd like to find an other than just setting a template override for the category itself).
Maybe use an extension like aditionnal categories for K2, set a custom template on that additionnal category and ajaw request on that additionnal category ?
What would be the best way to achieve something like this ?
(ps: would be awesome to have a specific CSS loaded for that specific view)
Thanks in advance and have a great day !
Edited 6 years 2 weeks ago by JM Bonnerot