A
A
AlexWD2020-12-27 04:44:25
MODX
AlexWD, 2020-12-27 04:44:25

How to get the value of TV fields from the parent?

There is a resource structure with a common template:

Resource
- Nested resource 1

  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2

- Nested resource 1
  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2

- Nested resource 1
  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2
  • - Nested resource 2


"Nested Resource 1" has several TV fields. If you fill them in and go to the "Installed resource 1" page, then everything is naturally ok.
But if you open the "Nested Resource 2" page, the TV fields do not drag. when editing the resource "Nested resource 2" TV fields there are the same and they are empty. It is necessary that they stretch from "Installed resource 1".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexWD, 2020-12-27
@AlexWD

Solution:
For MIGX:

[ [ getImageList? 
      &tvname=`name tv`
      &docid=` [ [ *parent ] ] `
     &tpl=`name tpl` 
] ]

For TV I used FastField

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question