all i am very new to Modx , i have pdotools installed and i am trying to add some static code (just social media icons) , but i can not add it after the [[+wapper]] as it disappears and i can not include it before the wrapper as it will duplicate on every new menu item, what would be the best way to tackle the situation ?
here is my current snippet for pdomenu
[[pdoMenu?
&parents=0
&level=1
&outerClass=navbar-nav
&rowClass=nav-item
&linkClass=nav-link
&tpl =@INLINE <li class="nav-item"><a class="nav-link" href="[[+link]]"> [[+menutitle]]</a> </li> [[+wrapper]] ]]
If it’s just static html there’s no need to include it in the pdomenu call. Can you just include it in the page template next to the snippet call? If not, can you show the markup structure you’re hoping to achieve?
I believe that you will face some issues using inline code.
I would recommend to avoid inline calls and call a chunk instead.
All problems that I faced with pdotools were solved as soon as I moved to chunks.
thanks every one for their responses, @lucy i needed the static html to sit in the same ul tag as the rest of the nav items.
Success ! @digitalpenguin thank you , that did the trick , i had originally replaced the &tpl=@INLINE with the &tplOuter=@INLINE , but your code works perfectly.
This is my first site in Modx (moved over from WP) and already appreciate the freedom modx provides.