We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I wish I could be more help. A JQuery conflict seems the most likely cause. Examining things in FireBug might help you find the problem.


    ------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using.
    MODX info for everyone: http://bobsguides.com/modx.html
      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
      • 36704
      • 131 Posts
      HI BobRay,

      I have trouble also in this tabs and i just copy & paste the code you posted here.

      <p>[[!NewsPublisher?
       
          &initrte=`1`
          &initDatePicker=`1` 
          &rtcontent=`1`
          &rtsummary=`1`
          &show=`pagetitle,tb_send_date,ShowName,introtext,pub_date,unpub_date,published,content`
          &captions=`content:Enter Your Post Here,FileTV:MyFileTV,introtext:MySummary,rt1:MyRt1`
          &usetabs=`1`
          &activetab=`Main`
           
          &tabs=`{
              "Main" :  ["pagetitle","introtext","content"], 
              "Dates" : ["pub_date", "unpub_date"], 
              "Publish" : ["publish"]
          }`    
          ]]
      </p>

      and it's not working on me. The MODx version i used is 2.2.5pl,and NewsPublisher ver. 1.4.1 using Blank Template just make it sure for any conflict on Jquery.

      On View Source Code:


      <head>
      <title>Saint Peter Parish Church - tabs</title>
      
      <link rel="stylesheet" href="/assets/components/newspublisher/css/newspublisher.css" type="text/css" />
      <link rel="stylesheet" href="/assets/components/newspublisher/datepicker/css/datepicker.css" type="text/css" />
      <script type=text/javascript src="/assets/components/newspublisher/datepicker/js/datepicker.packed.js">{"lang":"en"}</script>
      <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
      </head>


      The jquery was loaded correctly but calling the function script ID for Tabs for tabs was missing.
      <script>
          $(function() {
              $( "#tabs" ).tabs();
          });
          </script>


      Any idea how to fix this?

      Thank you in advance [ed. note: alyainec last edited this post 11 years, 5 months ago.]
      • Make sure to check your page for validation; a lot of odd javascript or css problems can be caused by HTML validation errors.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 3749
          • 24,544 Posts
          When you say blank template, does the template have a DOCTYPE, html, and body tags? It won't work without them. And have you tried other browsers? You may have a browser plugin that's causing the problem.


          That said, I haven't had time to test NewsPublisher in 2.2.5, so there may be a problem.


          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html
            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
            • 36704
            • 131 Posts
            Hi BobRay,

            Sorry it Base Template (not Blank Template).
            I did try to disable all plugins on my chrome, safari & firefox but it still doesn't work.

            Hi Susan,
            i Check the Base Template and i think all the the TAGS are valid.

            Thanks [ed. note: alyainec last edited this post 11 years, 5 months ago.]
              • 8921
              • 55 Posts
              Just to chime back in on this... I tried again with a completely fresh install of ModX 2.2.4, no other add-ons other than NewsPublisher, TinyMCE and Formit (all latest versions). No content, no custom html, no extra templates, all default ModX settings, no validation errors, no jquery conflicts, etc. Tried IE7, IE8, IE9, FF (pc/mac), Chrome (pc/mac), Safari (pc/mac/ios) on multiple computers/devices. Still doesn't work. The only thing I can think of at this point is that it has to be something to do with the server environment. I will try testing on another server later this week.


                • 28992
                • 7 Posts
                Hi,
                I had same problem with tabs.
                And I found that in newspublisherclass.php on line 595 there is:
                $tabsJs = $this->modx->getChunk('npTabsJs', array(...

                While Chunk name actually is: "npTabsJsTpl"

                So, I have corrected this in php file,
                but you can also just rename "npTabsJsTpl" chunk to "npTabsJs".


                Hope it will help you to.
                  • 36704
                  • 131 Posts
                  Hi Sinisa Vrhovac,

                  We glad that you found the problem, i did rename the npTabsJs into npTabsJsTPL and it's working.
                  May be on the next release of NewsPublisher will correct this package.

                  Thanks!



                  Quote from: svrhovac at Nov 10, 2012, 08:17 PM
                  Hi,
                  I had same problem with tabs.
                  And I found that in newspublisherclass.php on line 595 there is:
                  $tabsJs = $this->modx->getChunk('npTabsJs', array(...

                  While Chunk name actually is: "npTabsJsTpl"

                  So, I have corrected this in php file,
                  but you can also just rename "npTabsJsTpl" chunk to "npTabsJs".


                  Hope it will help you to.
                  [ed. note: alyainec last edited this post 11 years, 5 months ago.]
                    • 3749
                    • 24,544 Posts
                    Wow, you guys are good. Thanks for finding that and letting me know.
                      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