A
A
Alex2016-01-26 22:13:24
MODX
Alex, 2016-01-26 22:13:24

How to assign an additional field (TV) not only to the template, but also to the required resource?

Hello, if it’s possible to do this, it can be done with the help of a toolkit or a snippet. For example, we have a TV with a mapex input parameter (map designer), and we assign it as available for the template (for example, inside), but since we don’t really want to fence a bunch of templates for different resources the inside template is used on all internal pages, and there is a "contacts" resource where you need a map in the tab (additional fields), but TV mapex also appears on the tab on other resources with the inside template, which is not very cool ... Thanks in advance for adviсe.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2016-01-26
@Sanes

If the field allows you to specify the default value in the settings and fill it in once, then you can try:
1. Do not bind to templates
2. Set the value in the TV itself
3. Insert the TV value in the right place on the page in *content

R
Ruslan, 2016-01-27
@ruslan_aleev

Alternatively, you can create a page with a template specifically for the map and bind tv for it, and in the inside template, call this tv from the page with the map through the fastField snippet, for example.
Those. tv with a map will be on only one page, but it will also be called on all internal pages, without tv inside the internal admin panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question