We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44433
    • 33 Posts
    This is my call that works apsolutely fine
    [[!NewsPublisher? &show=`pagetitle,menutitle,alias,parent,statusTV,content`
                    &initrte=`1`
                    &initdatepicker=`1`
                    &rtcontent=`1`
                    &rtsummary=`1`
                    &parentid=`1`
                    &published=`1`
                    &template=`6`
                ]]

    However if I add 'deleted' to &show I receive the error 'Could not find Tpl chunk: boolTpl'
    I received this error when I first implemented NewsPublisher with the basic call however after adding all the inouts and properties everything worked as expected.

    Unfortunately, I have seen this done on another imnplementation of NewsPublisher where the option is available to delete a resource so I know its possible, but I cannot determine the root of the problem. Also there is very little online about this error that I get.

    This question has been answered by BobRay. See the first response.

      Follow me on twitter @christofvonlee
    • discuss.answer
      • 3749
      • 24,544 Posts
      It looks like a bug in the case of the Tpl chunk name. To fix it, try this:

      Find this file - core\components\newspublisher\model\newspublisher\newspublisher.class.php

      Change this line (around line 1214):


      return $this->strReplaceAssoc($PHs, $this->getTpl('boolTpl'));



      to this:


      return $this->strReplaceAssoc($PHs, $this->getTpl('BoolTpl'));


      Then clear the site cache.
        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
        • 44433
        • 33 Posts
        Yeah thats done it, fixed, thank you BobRay
          Follow me on twitter @christofvonlee
          • 3749
          • 24,544 Posts
          Thanks for pointing out the bug. Sorry for the trouble. wink
            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