You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
When the value of a toggle tv set is updated, all resources with that assigned tv need resetting (this is default MODX behaviour, nothing todo with ToggleTVSet). This is problematic when you have a site with a large amount of resources which all need changing (more info here).
Solution
Allow ToggleTVSet to work with something such as SetInputOptions. SetInputOptions gives you a CMP which allows you to manage values of a TV, by inserting a query statement in the input field of a TV. These values are stored in the database.
A more generic summary is to enhance ToggleTVSet so it can use @SELECT query statements in an input field of a TV, so it can retrieve the values from the database.
Observed Behaviour
At the moment using a @SELECT query statement inside a ToggleTVSet TV causes some problems, such as;
On initial load - all TV's are displayed
After save, the "hideTVs" option in the <head> doesn't pull in the TV ID's, which means the TVs aren't hidden in the manager any more.
"showTVs" value is displaying an incorrect TV ID
What works:
The toggle sets toggle, but when selected and saved, all tv's are displayed again
Using a query statement, the name of the options appear to be loading in fine (but perhaps the value isn't being pulled in)
The text was updated successfully, but these errors were encountered:
Problem
When the value of a toggle tv set is updated, all resources with that assigned tv need resetting (this is default MODX behaviour, nothing todo with ToggleTVSet). This is problematic when you have a site with a large amount of resources which all need changing (more info here).
Solution
Allow ToggleTVSet to work with something such as SetInputOptions. SetInputOptions gives you a CMP which allows you to manage values of a TV, by inserting a query statement in the input field of a TV. These values are stored in the database.
A more generic summary is to enhance ToggleTVSet so it can use
@SELECT
query statements in an input field of a TV, so it can retrieve the values from the database.Observed Behaviour
At the moment using a
@SELECT
query statement inside a ToggleTVSet TV causes some problems, such as;<head>
doesn't pull in the TV ID's, which means the TVs aren't hidden in the manager any more.What works:
The text was updated successfully, but these errors were encountered: