<?php
$search = 'слова';
$tvName = 'keywords';
preg_quote($search, '/');
foreach($modx->getCollection('modResource') as $res){
$kw = $res->getTVValue($tvName);
preg_match_all("/.*$search.*/", $kw, $matches);
if($matches[0]){
$matches['id'] = $res->get('id');
print_r($matches);
}
}
.b-popup-content {
position: absolute;
left: 0;
right: 0;
}
<span class="breadcrumbs">
<span class="left">
<span class="container">
<? foreach ($this->shopNav as $key => $page): ?>
<? if ($key < count($this->shopNav) - 1): ?>
<a href="<?= $page['url'] ?>"><?= $page['label'] ?></a> /
<? elseif: ?>
<?= $page['label'] ?>
<? endif; ?>
<? endforeach; ?>
</span>
</span>
<span class="right"></span>
</span>
<span class="breadcrumbs">
<span class="left">
<span class="container">
<?
foreach ($this->shopNav as $key => $page)
if ($key < count($this->shopNav) - 1)
{
?><a href="<?=$page['url']?>"><?=$page['label']?></a> / <?
}
else echo $page['label'];
?>
</span>
</span>
<span class="right"></span>
</span>