Answer the question
In order to leave comments, you need to log in
How to use one specific tv on other pages of the site?
Hello!
For example, there is a contacts page, here I define the allowable numbers by phone and all through the additional field phone. In the admin panel, I go to the "contacts" resource and add phones there. And here's the question: I need these two phones on the main page in the header or footer. (and tv phone is only defined for the contacts template) how can I display these phones in header or footer chunks on other pages. Why I ask, because if I define tv phone for the home template (main page), then the fields of these two phone numbers will appear in the additional fields for filling, but they are not needed there. Tell me how you do it so as not to write the same tv in fact with the same context, but different names. I remember there was an extension that allowed you to do this. I don't remember the name and can't find it.
Thank you!
I would be very grateful if anyone can share their experience in this matter.
Answer the question
In order to leave comments, you need to log in
Hello, there is a special component for such purposes - https://modx.com/extras/package/clientconfig (I saw somewhere that it does not work on new versions of MODX).
You can also use pdoField https://docs.modx.pro/components/pdotools/snippets... (fastField syntax also works in it, i.e. you can display the phone in the right place like this - [[#20.phone] ] , here 20 is the id of the page where the TV phone is loaded) or use your own pdoField syntax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question