P
P
Pavel Myshkin2014-06-09 17:24:12
MODX
Pavel Myshkin, 2014-06-09 17:24:12

How to display title and description from Gallery in (MODX Revo)?

I need to add a gallery title and description from the Gallery component to the HEAD section. I tried everything - found nothing. If you enter, for example, Вопрос - then the description will be taken from the document in which the gallery snippet is called.
Something like this I would like:

<title></title>
<meta name="description" content="">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Myshkin, 2014-06-11
@Pazys

At the moment, I did it using the Gallery snippet output
template Template (chunk) galleryAlbumSEO:

<meta name="description" content="">
<title> - Вопрос</title>

But this decision still did not suit, I had to redo the logic a little. I created pages and displayed a certain gallery on them, through the TV parameter galleryalbumlist (galleryLink).
further - the page displays the gallery specified in TV.
And on the page you can already specify the title and description and keywords.

Z
zooks, 2014-06-10
@zooks

I advise you to use MODx tags for their intended purpose. Fill in the titles on the pages where the gallery is hosted.
will be displayed only after calling the gallery module, so it does not suit us.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question