S
S
Sergey Balashov2016-03-01 06:39:52
MODX
Sergey Balashov, 2016-03-01 06:39:52

Can a template have data to pass into chunks?

I need to pass the article type to the chunk (it can be a review, an article, etc.). How to do it?
PS: I would like to pull the user to fill out additional information less.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Karyakin, 2016-03-01
@dmitrykaryakin

You can look at the template id 2 in the chunk (I don’t remember exactly what it points to, maybe not on the id, on the name of the template), if you have your own template for each type of article. Or the value TV if the article type is specified by it. For example:

here is a chunk or its parameter for an article with template 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question