I upgraded MODx Revolution 2.0.4-pl (traditional) to 2.0.7-pl and then my some of my TV’s linked to the templates started acting up. There’s no problems with textfields or textboxes and the select boxes work like a charm as well.
What doesn’t work anymore? Checkboxes and Images.
Both show up with their caption and description when I work on a document and do some editing in the tab Template Variables, but the actual checkbox or images-field respectively stays hidden.
This is the code I find where I should see a checkbox:
<div class="x-form-item x-tab-item modx-tv" id="tv5-tr">
<label for="tv5" class="modx-tv-label">
<span class="modx-tv-caption" id="tv5-caption">fotokadertje activeren?</span>
<a class="modx-tv-reset" href="javascript:;" onclick="MODx.resetTV(5);" title="Set to Default"></a>
</label>
<div class="x-form-element modx-tv-form-element" style="padding-left: 200px;">
<input type="hidden" id="tvdef5" value="">
<div id="tv5-cb"></div>
</div>
<br class="clear">
</div>
This is the code I find where I should see the images-field:
<div class="x-form-item x-tab-item alt modx-tv" id="tv8-tr">
<label for="tv8" class="modx-tv-label">
<span class="modx-tv-caption" id="tv8-caption">foto</span>
<a class="modx-tv-reset" href="javascript:;" onclick="MODx.resetTV(8);" title="Set to Default"></a>
<span class="modx-tv-description">foto die bij 't artikel hoort</span> </label>
<div class="x-form-element modx-tv-form-element" style="padding-left: 200px;">
<input type="hidden" id="tvdef8" value="">
<div id="tvbrowser8"></div>
<div id="tv-image-8" style="width: 97%"></div>
<div id="tv-image-preview-8">
</div>
</div>
<br class="clear">
</div>
Some extra information:
I’m running mysql 5.1.54-community-log and PHP Version 5.2.18-dev.
I’ve reinstalled the 2.0.7 version succesfully and didn’t have any errors in the process.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Perhaps I should elaborate more, because there’s actually an issue that I am wondering about how to solve it:
I need the aforementioned TVs to function again in the manager, and they quit doing so after the 2.0.7 upgrade.
At this moment the 300+ pre-2.0.7 documents work like a charm and the two TVs do their job. It worries me that even a succesful re-install of 2.0.7 doesn’t fix the problem for new documents. I’ve looked in the bug tracking system and can’t find any related bugs that would send me in the right direction.
It’s probably just a simple setting, but it’s apparently beyond my level of knowledge at this point. Returning to 2.0.4 is a possibility, though a bit contra-productive.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
I’ve just tested whether the problem occurs with a NEW images template var. Sadly, the exact same thing happens.