<![CDATA[ YAMS and TVs - My Forums]]> https://forums.modx.com/thread/?thread=45627 <![CDATA[Re: YAMS and TVs]]> https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263936
Yes, please post something if you find the answer: I’ll keep looking at the problem as well - (once I’ve got the site built and the client happy). It’s not the end of the world, because they work: the French data is shown on French pages, and the English where it should be, and the monolingual fields shown correctly too.

Just annoying a little bit.

Plus ça change...]]>
nicboyde Jun 12, 2011, 06:01 PM https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263936
<![CDATA[Re: YAMS and TVs]]> https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263935
yes, i came across the same kind of issue but for custom TVs solved it as i mentionned in my auto answer, too bad, this doens’t solve your...
reading your post, i’ve tried checkbox and multiple choice list and ran into the same thing as you did...

i’ve dug into yams and MODx file to see where that comes from but so far, i haven’t got the answer, or, at least, the solution, because after a long reading of all the concerned files i’ve got the beginning of a clue...
Those two tv are the only one for which the value is first exploded and it is the only difference i could found out between them and the others that are perfectly dispatched in the correct tabs
Then, i’m wondering if the solution wouldn’t be to set YAMS plugin execution before other MODx behavior for other system events. i’ve tried on tvformprerender and tvformrender but too bad it doesn’t work...

i’m on it smiley if ever i find out a working solution i’ll of course let you know

Have swing
]]>
virtualbear Jun 12, 2011, 03:15 AM https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263935
<![CDATA[Re: YAMS and TVs]]> https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263934
I’ve just had the same idea and gone to have a look. The code looks through the site_tmplvars table and separates the standard MODx TVs and custom TVs all ending in _id (where id = en, or fr etc).

It doesn’t seem to, as far as I can tell, distinguish between TVs by input type.

But it does, somehow, because it doesn’t tabify these two Multiple-Answer input types.

I’ve also had a look at the site_tmplvars table just to make sure that the checkbox custom tvs are correctly stored there. They are.

So I’m stumped. Thanks for the suggestion, though.

I think Virtual Gadjo http://modxcms.com/forums/index.php?action=profile;u=17212 has just come across the same issue.]]>
nicboyde Jun 11, 2011, 07:12 PM https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263934
<![CDATA[Re: YAMS and TVs]]> https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263933 sottwell Jun 10, 2011, 11:39 PM https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263933 <![CDATA[YAMS and TVs]]> https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263932
Over the years I have developed a highly modular approach: my templates call chunks and TVs, mostly chunks, and my chunks call snippets and TVs. TVs often call snippets. My templates at least are nicely simple - just structure. The rest can be, shall we say, a bit derivative. Works for me, anyway.

I could not get checkbox TVs to work at all. They wouldn’t fall under the correct language tab, only under general, and the [[Yams?]] calls weren’t working either, even if placed in the correct language [*content*] standard TV. I suspected the failure to correctly tab by language was the problem.

I have now established that checkbox TVs won’t tab properly, and nor will listbox-multi-select TVs. They only appear under the general tab. On the other hand, TVs with input type: Text, Textarea, Rich Text, Dropdown List Menu, Listbox single select all work fine. (I haven’t tried the other TV input types, nor have I tested any widgets).

By entering the [[YAMS?]] snippet call directly in the template instead of via a chunk or via a standard (eg [*content*]) TV, I can retrieve the data, including multiple selections from listbox multi-select and from checkboxes. The correct language option is displayed. So now I can get on with building the site.

Now that I am sure that the data is retrievable (even if the tabbing doesn’t work for checkboxes and listbox multiples) I will get on with trying to figure out how to use my highly nested structure.

I would like to solve the tabbing problem though: my client would prefer not to have three places to enter data...

Any ideas?


Nic Boyde



MODx 1.0.5
YAMS 1.1.9
PHP 5.3.6
MySQL 5.1.56
ManagerManager 0.3.9
pdo-mysql installed
No PHx]]>
nicboyde Jun 10, 2011, 03:54 PM https://forums.modx.com/thread/45627/yams-and-tvs#dis-post-263932