Trying

Trying

Был в сети 18 июня 2026, 10:14
Заказы не принимаю
Присоединяюсь к вопросу. Сортировка как задано в значениях msoption была бы самой логичной, так как даже простой checkbox Да/Нет на английском отображаетса как No/Yes, уже не говорю про более сложные значения, которые клиент хочет расбросать так, как ему кажется логично.

Конечно можно и так.

Указать значения с цифрами:

1 zgrhetyjr
2 afenmjfhjm
3 shtrym

И эти цифры потом скрыть:

$('form#mse2_filters label span').html(function() {
  	var text= $(this).text().trim().split(' ');
  	var first = text.shift();
  	return (text.length > 0 ? '<span style="display:none">'+ first + '</span> ' : first) + text.join(' ');
  	});

Но это костиля.
Добрый день,

А как в этом pdoMenu коде подключить и вывести также и msProductOptions, то есть те опции которые мы можем создавать сами?

А также c msProductData работает только [[+thumb]] и [[+image]], в msProducts работало и {$file['medium']} в Media Sources оформлены так:
{
«small»:{«w»:200,«h»:130,«q»:100,«zc»:«1»,«bg»:«ffffff»},
«medium»:{«w»:400,«h»:260,«q»:100,«zc»:«1»,«bg»:«ffffff»},
«big»:{«w»:600,«h»:390,«q»:100,«zc»:«1»,«bg»:«ffffff»}
}

Тут возможно подключить?

Спасибо!
Ok, so looking at how it was implemented in Wayfinder, I have just changed this line in pdomenu.class:

return $this->pdoTools->getChunk($tpl, $row, $this->pdoTools->config['fastMode']);
to this bit of code:
$tploutput = $this->pdoTools->getChunk($tpl, $row, $this->pdoTools->config['fastMode']);
$newline = "\n";
return $tploutput . $newline;
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.

Yes, I did. It displays \n in html. For whatever reason, when all
<li></li><li></li>
are in one line sometimes occur slight distortions of css styling. In Wayfinder every rowtpl is in new line, I found in wayfinder.class.php this line:
/* return the row */
        $separator = $this->modx->getOption('nl',$this->_config,"\n");
        return $output . $separator;
Probably it is possible to add somewhere \n in pdomenu.class.php?