How to exclude from the menu a link to the page where we are currently in pdomenu in Modx revo? As an example, I now have such a stub (-14 I excluded the menu item that should always be excluded, do not pay attention):

[[pdoMenu? &parents = `2` &limit = `0` &level = `0` &showUnpublished = `0` &resources = `-14` &tplOuter = `@INLINE <ul>[[+wrapper]]</ul>` &tpl = `@INLINE <li><a href="[[+link]]">[[+menutitle]]</a></li>` ]] 

    2 answers 2

    You need to use &tplHere - Chunk design the current menu item.

     &tplHere= `@INLINE ` 

    Those. do not display anything instead of the current menu item

    Snippet documentation: https://docs.modx.pro/komponentyi/pdotools/snippetyi/pdomenu

      I will supplement the working version given by @Tunker with one more.

      You can add IDs of the currently displayed resource to exceptions, in addition to the resource with ID = 14:

       &resources = `-14,-[[*id]]`