How to limit the number of items in Component View?

I want to display the sub galleries under a main gallery, but I only want to display grid of 3x3.

If I configure a component link from menu, the component view does not have "limit" parameter, if I add a DJ-Media as a module, the module does not show the sub modules by selecting the main gallery.

Any idea how can I achieve this layout?

Regards,
YS

Comments

  • Hello,
    you need to modify components/com_djmediatools/views/category/view.html.php and add the following line

    $model->setState('list.limit', 9);

    at 78 line just after the condition

    if($params->get('show_subcategories') != 'hide') {

    Best
    Szymon
Sign In or Register to comment.