Line break or new line in snippet template?
Hello, maybe it is a strange question, but is there a way to make:
display in html not in one line
Thanks!
&tpl=`@INLINE <li[[+classes]]><a href="[[+link]]">[[+menutitle]]</a>[[+wrapper]]</li>`display in html not in one line
<li></li><li></li><li></li>but in new lines:<li></li>
<li></li>?Thanks!
Комментарии: 9
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
2. Did you try to?
Probably it is possible to add somewhere \n in pdomenu.class.php?
That behavior is describe in official documentation in this page:
docs.modx.pro/en/components/pdotools/general-settings#Template-parameters
like:
It necessary set it to «one space» symbol:
, because if use simply empty string,
it not properly work.
By default it set to
according to this code: github.com/bezumkin/pdoTools/blob/master/core/components/pdotools/model/pdotools/pdotools.class.php#L63
pdoMenu has its own class that extends pdoFetch. Menu generation is complicate so it has its own logic, without &outputSeparator.
to this bit of code:
Ant it works. Probably it is possible to make it more elegant and simple, but since I know nothing in these things so can only mimic what is done elsewhere.