Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you register in the template, it works, I just checked it. Perhaps you display it in the placeholder of the snippet (I haven't tried it about the placeholder in the snippet).
it’s in the placeholder of the snippet that I want to display, it doesn’t display ... who will advise what to do
As an option create a snippet like this -
<?php
$result = $modx->query("SELECT * FROM modx_seopro_keywords WHERE id=".$id);
if (!is_object($result)) {
return '';
}
else {
$row = $result->fetch(PDO::FETCH_ASSOC);
return $row["keywords"];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question