We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Hi,

    If i change the template used by a resource my rich text TVs lose any content that i’ve previously added to them. Other TVs seem fine and values are remembered.

    Is this a known bug? Anyone else have this problem or is it just me?

    The tv settings are

    Input Type: RichText
    Output Type: Default

    Ben
      • 3232
      • 380 Posts
      I think I have experienced this before. (if I remember correctly) If you change the template, save the item, then click on the item again in the tree (so it reloads) the content appears.
        • 36926
        • 701 Posts
        Quote from: betoranaldi at Jan 30, 2011, 01:33 PM

        I think I have experienced this before. (if I remember correctly) If you change the template, save the item, then click on the item again in the tree (so it reloads) the content appears.

        Hey betoranaldi, thanks for the reply. Unfortunately didn’t seem to work.
          • 3749
          • 24,544 Posts
          Were those TVs already attached to the new template before you switched? When changing the template and saving, MODx would call the update processor with the TVs attached to the resource. If they weren’t also attached to the new template, MODx might not be able to save them and empty values might be saved instead.

          Did you try clearing the cache?

          Can you look in the database at the modx_site_templvar_contentvalues table in PhpMyAdmin to see if the content of those TVs is still there (and if the TVs are there at all for that resource)? Look for the ID of the Resource in the contentid column and the ID of the TV in the tmplvarid column.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 36926
            • 701 Posts
            Hey Bob thanks for the reply.


            Were those TVs already attached to the new template before you switched?
            Yeah there were already set up for use with the templates.

            Did you try clearing the cache?
            Just tried that but no change


            Can you look in the database at the modx_site_templvar_contentvalues table in PhpMyAdmin to see if the content of those TVs is still there (and if the TVs are there at all for that resource)? L
            Ok so when i added some values to the TV i can see it in the DB with the correct Resouce ID and TV ID. As soon as I change the template and save. The TV is no longer listed for the Resource, the row seems to get completely removed.

            I’m taking it this isn’t how it should be working, no one else with this issue?

            I’m pretty sure i haven’t had issues with older instals of Revo. I’m now using 2.0.7.

            Thanks

            Ben
              • 3749
              • 24,544 Posts
              That really sounds like a bug to me. Could you file it at http://bugs.modxcms.com, so it doesn’t fall through the cracks.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 36926
                • 701 Posts
                Quote from: BobRay at Jan 31, 2011, 01:22 PM

                That really sounds like a bug to me. Could you file it at http://bugs.modxcms.com, so it doesn’t fall through the cracks.

                Thanks Bob.

                I’ve added as a bug.

                Ben
                  • 3749
                  • 24,544 Posts
                  Quote from: bennyb at Jan 31, 2011, 03:27 PM

                  Thanks Bob.

                  I’ve added as a bug.

                  Ben
                  Thanks! smiley
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 28743
                    • 10 Posts
                    I’ve had the same problem today. A workaround until the bug is fixed is to do "quick update resource" and change the template here - the tv’s keep their values if you do this
                      • 36926
                      • 701 Posts
                      Quote from: studiorepublic at Mar 11, 2011, 04:36 AM

                      I’ve had the same problem today. A workaround until the bug is fixed is to do "quick update resource" and change the template here - the tv’s keep their values if you do this

                      Thanks Studiorepublic, that will help for the time being.