We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28984
    • 6 Posts
    Something very strange.
    I have the newspublisher working fine in the main context (web):
    [[!NewsPublisher? &show=`pagetitle,price,curency,airline,details,published,menuindex` &required=`menuindex,pagetitle,price,curency,airline,details` &parent=`8` &template=`parent`]]

    But when I call newspublisher from a resource which is part of another context (in my case this context is called "en") no resource is created:
    [[!NewsPublisher? &show=`pagetitle,price,curency,airline,details,published,menuindex` &required=`menuindex,pagetitle,price,curency,airline,details` &parent=`47` &template=`parent`]]

    After submitting the form, the snippet tries to redirect to the page that should be created, but 404 error occurs (obviously no resource is created).
    May be I am missing something related to the context settings...
    Any help will be appreciated.
    Thanks in advance.
      Apache 2.0.63 (MacOS X)
      PHP Version 5.2.13
      MySQL 5.1.44
      MODx Revolution 2.0.8-pl (traditional)

      Made By Many
      • 3749
      • 24,544 Posts
      It sounds like your front-end user might not have all the necessary permissions. Is the resource or the parent in any resource groups that might be protected?
        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
        • 28984
        • 6 Posts
        Quote from: BobRay at Mar 10, 2011, 05:00 PM

        It sounds like your front-end user might not have all the necessary permissions. Is the resource or the parent in any resource groups that might be protected?
        The front-end user is the admin user (should have all the permissions).
        The resources have no specific access permissions.
        The main context (web), where newspublisher works fine has this access permissions:
        Context: web, User Group: (anonymous), Authority: 9999, Access Policy: Load Only;
        and
        Context: web, User Group: Administrator, Authority: 0, Access Policy: Administrator;


        The second context (en), where newspublisher is not working has this access permissions:
        Context: en, User Group: (anonymous), Authority: 9999, Access Policy: Load Only;
        Context: en, User Group: Administrator, Authority: 9999, Access Policy: Resource;
        Context: en, User Group: Administrator, Authority: 9999, Access Policy: Administrator;


        Forgot to mention in the previous post that there is no problem with updating resources with newspublisher. If I create resource through the manager, I can update it, but I am not able to create resource with newspublisher in this context..
          Apache 2.0.63 (MacOS X)
          PHP Version 5.2.13
          MySQL 5.1.44
          MODx Revolution 2.0.8-pl (traditional)

          Made By Many
          • 3749
          • 24,544 Posts
          Try changing the authority level to 0 for the admin users.
            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
            • 28984
            • 6 Posts
            I come to conclusion that this is not a newspublisher problem but a contexts problem. After trying to add user to "en" context it simply disappeared. When I cleared the cache the log throw this message:
            Principal 1 does not have permission to load object of class modContext with primary key: en

            I deleted the core/cache directory manually, flushed all permissions, but this didn’t help.
            A similar problem is described here: http://modxcms.com/forums/index.php?topic=61831.0, but as far as I see there is no solution untill now... sad
              Apache 2.0.63 (MacOS X)
              PHP Version 5.2.13
              MySQL 5.1.44
              MODx Revolution 2.0.8-pl (traditional)

              Made By Many
              • 15162
              • 59 Posts
              I’m rocking version 1.0.6 right now and love that you have begun implementing image TVs. When you try to browse for a new image and it opens up the Modx resource browser in a pop up window, it does not output correctly in Chrome. The actual browser gets pushed out of the screen, only leaving a scroll bar at the bottom.

              In Firefox (4) the browser does work as expected. My Chrome version is 10. I’m wondering that is anyone else experiencing these problems? I’m not getting any errors in Modx nor the browser and the sources look identical.
                • 3749
                • 24,544 Posts
                TinyMCE is doing the work there, so it may not support Chrome. If not, there’s not much to be done about it. I think the MODx version of TinyMCE is somewhat outdated, though I could be wrong. splittingred hosts the source at GitHub, but I don’t think he has any time to work on it.
                  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
                  • 34039
                  • 6 Posts
                  Hi,

                  I’ve recently added NewsPublisher to my website, and it seems like it will be absolutely perfect for the website’s needs.

                  However, I was wondering if there was handling for DropDown TVs, as currently, the dropdown TVs that I have included are showing up as text input fields.

                  My call is this :
                  [[!NewsPublisher? &parentid=`338` &template=`parent` &tinyheight=`600px` &initrte=`1` &rtcontent=`1` &aliastitle=`1` &show=`pagetitle,longtitle,pub_date,unpub_date,content,author,author2`]]


                  Author and author2 are both dropdown menu TVs, both show up as text fields.

                  Is it possible to get them to show as dropdowns and I’m missing something, or is that functionality not available?

                  I am using Revo 2.0.8 advanced and NewsPublisher 1.0.6 beta1.

                  Thank you in advance.
                    • 3749
                    • 24,544 Posts
                    Try changing the TV input type to listbox (single-select) or listbox (multiple-select).


                      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
                      • 33988
                      • 110 Posts
                      Quote from: BobRay at Apr 03, 2011, 11:22 PM

                      Try changing the TV input type to listbox (single-select) or listbox (multiple-select).
                      Xaecoder and I are working on the same site. Changing it to use a list-view single select changed the NewsPublisher form field to a select box, which is a step in the right direction. But the only item in the select box is this:
                      @SELECT `pagetitle` AS `name`,`id` FROM `modx_site_content` WHERE `parent` IN(22,31) ORDER BY `pagetitle` ASC

                      which is the code we are using to generate the options.
                      EDIT: Even when using the x==y|a==b format directly, the format is just repeated in the first option of the select box.
                      Thanks.
                        Sal Sodano
                        President & Co-Founder of SkyToaster
                        My Website Salscode.