chunk with parameters?" />
K
K
kapitansen2016-12-16 15:40:03
MODX
kapitansen, 2016-12-16 15:40:03

Calling

chunk with parameters?

I continue to deal with MODX and the philosophy of templates, chunks and snippets. You need to call the header of the site, and in some cases with the connection of third-party JS, in some without. I don't want to do two different headers in different chunks. How to do something like:
while in another template [[$header &load=bs3] ?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
R
roswell, 2016-12-16
@kapitansen

In the chunk code, you can arrange something like this (by the way, before listing the parameters, do not forget to put a question mark after the name of the chunk or snippet):



A
Anton, 2016-12-16
@Ooos

Sometimes it's convenient to use IF
[[$chank?&text=`1`]] inside a chunk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question