G
G
George2018-04-06 15:51:38
MODX
George, 2018-04-06 15:51:38

Is it possible to write for the alt attribute of images in the template?

Tell me how to register placeholders from the SEOPRO package for the alt attribute of images,
alt="" so for some reason it doesn't work

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan, 2018-04-07
@ruslan_aleev

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).

G
George, 2018-04-07
@Dominikus

it’s in the placeholder of the snippet that I want to display, it doesn’t display ... who will advise what to do
86d85583b46c.png

D
Dmitry Lartsev, 2018-10-23
@desnomad

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"];
}

Save, name for example - "keywords" and call:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question