[[+content_image]]
J
J
jecer2018-05-11 13:52:31
MODX
jecer, 2018-05-11 13:52:31

How to make a link to another site through TV?

I welcome everyone!
I ran into a problem, I don’t understand how to display a link to another site through TV.
this is how the elements are rendered

<p><a href="/">[[+pagetitle]]<div>
<p><img class="img-responsive" src="[[+tv.image]]">
<p class="news">[[+introtext]]</p></div></a>

it is necessary that when you click (on these elements), a third-party site opens
instead , I understand what should be put or not? but it redirects me to my own site, only with the addition of what is written in the additional field, which is displayed in the resources, how to do it right? I think that I need to edit, something in the snippets, but I don’t do anything in php at all ... there are pdoTools, getPage and getResources snippets <a href="/"><a href="/[[+tv.имя нужного tv]]">

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Dmitry Grabko, 2018-05-11
@jecer

Remove the / at the beginning of the link
<a href="[[+tv.имя нужного tv]]">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question