M
M
maximusDreddoff2015-10-21 12:26:39
MODX
maximusDreddoff, 2015-10-21 12:26:39

Show news preview on another ModX page?

Good afternoon. The project on ModX, I myself work more on the front, so there were some difficulties with the admin panel. The project has a resource " articles ". I need to display some preview (the title of the article and a small description) in the right sidebar on another resource (“ services ”). I created TV(" article_preview ") with a text value, and attached it to the article templates. Those. introduced a separate field in which it is possible to enter text that I would like to see later on the pages of " services ". Filled in this field in the articles.
Also created tpl "article_story" with the following code:

<p><a href="http://askmeplz.com/">
<img alt="" src=""></a>

</p>

Download the getResources extension. And I tried to insert the following code into the "services" template in the right sidebar

Naturally, nothing good came of this. I ask the community for help, point me on the right path. I guarantee pluses in karma

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan, 2015-10-21
@maximusDreddoff

Try to call in a wooden way for a start, without additional parameters, for example, like this:

D
Dmitry Khristoev, 2015-10-21
@Haoss

1 - why additional TV, is there a description and annotation?
2 - to chunk

S
sanch0ss, 2015-10-29
@sanch0ss

there is some strange tv image in the chunk - src=""
as far as I understand, in your case it should be like this - src=""
Just written

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question