[[+content_image]]
A
A
ArniVine2021-09-28 13:33:46
MODX
ArniVine, 2021-09-28 13:33:46

View all function output, how to do?

There is a submenu output using pdo, a limit of up to 4 categories is specified,
I can’t figure out how to make a button to view all if the limit is exceeded

[[!pdoMenu?
&parents=`144318,-19,-2474`
&rowClass=`catalog-submenu__item`
&level=`1`
&limit=`4`
&tvFilters=`template==7 || template==25 `
&tpl=`catalog-submenu.tpl`
]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
W
weranda, 2021-09-28
@ArniVine

One of the options is:

[[pdoMenu?
    &parents=`9`
    &limit=`4`
]]

[[AjaxSnippet?
    &snippet=`pdoMenu`
    &limit=`0`
    &as_mode=`onclick`
    &as_trigger=`Click me!`
]]

<script>
$( ".ajax-snippet a" ).click(function() {
    $('ul').hide();
});
</script>

Need Ajax Snippet.
Finish, I hope you can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question