Announcement

Collapse
No announcement yet.

Switching Between Tabs Causes Blank Values in Custom Module

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Switching Between Tabs Causes Blank Values in Custom Module

    I have a custom module that for some reason the content is empty when I click on any product tab and than back to the custom module tab. I am not even sure where to start or what part of the code to post to help clear it up.

    quick background, the module was serializing the content and I am switching it to individual columns.
    Chris Dye
    http://www.kseriesparts.com

    #2
    Re: Switching Between Tabs Causes Blank Values in Custom Module

    just a follow up, it seems like on any other tab it isn't retaining variables that I am assigning from the module and that is why they are showing up blank when I switch tabs. When I update the product on any other tab it erases the values in the database.
    Chris Dye
    http://www.kseriesparts.com

    Comment


      #3
      Re: Switching Between Tabs Causes Blank Values in Custom Module

      What are you using to block the content from other tabs?
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        Re: Switching Between Tabs Causes Blank Values in Custom Module

        not sure what you mean. the module was written by someone else and I am doing my best to rework the code based upon what I need going forward. I am also using it as a bit of a learning tool, that is why I didn't go back to the person that wrote it.
        Chris Dye
        http://www.kseriesparts.com

        Comment


          #5
          Re: Switching Between Tabs Causes Blank Values in Custom Module

          would this little line of code be what you are talking about?

          Code:
          <MvIF EXPR="{ l.tab NE l.module:code }">
          Chris Dye
          http://www.kseriesparts.com

          Comment


            #6
            Re: Switching Between Tabs Causes Blank Values in Custom Module

            That was it, thank you Bruce!
            Chris Dye
            http://www.kseriesparts.com

            Comment


              #7
              Re: Switching Between Tabs Causes Blank Values in Custom Module

              Originally posted by K Series Parts View Post
              would this little line of code be what you are talking about?

              Code:
              <MvIF EXPR="{ l.tab NE l.module:code }">
              Yes, but that's odd. Module content, to be show in the admin, is almost always conditioned as

              Code:
              <MvIF EXPR="{ l.tab EQ l.module:code }">
              (That's EQ). Also, make sure the case of the tab setting and module:code are the same, or force the case with

              Code:
              <MvIF EXPR="{ tolower(l.tab) EQ tolower(l.module:code) }">
              Bruce Golub
              Phosphor Media - "Your Success is our Business"

              Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
              phosphormedia.com

              Comment


                #8
                Re: Switching Between Tabs Causes Blank Values in Custom Module

                ok, thanks I will tweak it. the module is 5 years old so I am sure some things have changed over the years
                Chris Dye
                http://www.kseriesparts.com

                Comment


                  #9
                  Re: Switching Between Tabs Causes Blank Values in Custom Module

                  Well good luck. When I look at five year old code, I basically just keep muttering "wtf?"

                  Pro Tip: Never let code get old.
                  Last edited by Bruce - PhosphorMedia; 03-23-15, 08:11 AM.
                  Bruce Golub
                  Phosphor Media - "Your Success is our Business"

                  Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                  phosphormedia.com

                  Comment


                    #10
                    Re: Switching Between Tabs Causes Blank Values in Custom Module

                    haha, try learning it and bringing it up to date all at the same time.... I gave up on the muttering a long time ago and now I just have a really sore forehead.
                    Chris Dye
                    http://www.kseriesparts.com

                    Comment

                    Working...
                    X