• NewsPublisher things that work and things that dont#

  • fux0r Reply #1, 10 months, 3 weeks ago

    Reply
    Really groovin on the newspublisher snippet.

    Using rev 2.1.1-TRADITIONAL
    newspublisher 1.1.0 pl
    Using firefox for editing

    The only template assignment is allows me is parent
    &parent=`2` does not work either. (2 is the container I want the post to go to)

    Everything else seems to work thus far




  • mschlegel Reply #2, 10 months, 3 weeks ago

    Reply
    The template problem should be fixed in the newest version (1.2.0-rc1). Unfortunately it seems to me that the package is not downloadable. But you could change core/components/newspublisher/classes/newspublisher.class.php by yourself (see commit: https://github.com/BobRay/newspublisher/commit/5c67c872f984c74a5b1692ad76daf1ec4f724bac ).
    Setting the parent worked for me up to now (if the resource with the Newspublisher call and the parent resource are within the default web context. If they are in a different context, you will need the newer version).


  • BobRay Reply #3, 10 months, 3 weeks ago

    Reply
    I don't know why it's not showing up in Download Extras, but you should be able to download it directly to your core/packages directory and in Package Manager select "Add New Package" and "Search Locally for Packages." Then install it.

    http://modx.com/extras/package/newspublisher


  • fux0r Reply #4, 10 months, 2 weeks ago

    Reply
    unable to download from package manager (it doesnt even show up) and download doesnt work on website either.
    ive noticed some things dont show up in package manager depending on which version of modx you use
    dumb


  • fux0r Reply #5, 10 months, 2 weeks ago

    Reply
    I also notice that on a modx 210 install, newspublisher 1.0.6 and try to update, it shows a popup window that usually allows you to select the version you want to upgrade to.
    This has TWO bullets with no names next to it. When you select either and install:provider_err_connect


    finally found copy of 1.2.0 at github.
    now none of the paremeters work.
    I use and it shows entire form
    but i use: and it shows nothing.



  • BobRay Reply #6, 10 months, 2 weeks ago

    Reply
    Quote from: fux0r at Jul 09, 2011, 12:39 AM
    I also notice that on a modx 210 install, newspublisher 1.0.6 and try to update, it shows a popup window that usually allows you to select the version you want to upgrade to.
    This has TWO bullets with no names next to it. When you select either and install:provider_err_connect


    finally found copy of 1.2.0 at github.
    now none of the paremeters work.
    I use and it shows entire form
    but i use: and it shows nothing.

    Try this (you're missing the question mark):

    [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,unpub_date,content`]]


  • fux0r Reply #7, 10 months, 2 weeks ago

    Reply
    Sorry about that. Im a dork.

    OK most of this works for me. Here is my call:

    [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,content`&aliastitle=`1`&initrte=`1`&rtcontent=`1`&rtsummary=`1`&initdatepicker=`1`&parent=`2`&published=`1`&hidemenu=`1`&cacheable=`1`&searchable=`1`&richtext=`1`&postid=`31`&template=`6`]]


    or

    [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,content`&aliastitle=`1`&initrte=`1`&rtcontent=`1`&rtsummary=`1`&initdatepicker=`1`&parent=`2`&published=`1`&hidemenu=`1`&cacheable=`1`&searchable=`1`&richtext=`1`&postid=`31`&template=`Utility`]]


    The only things I have a problem with:

    doesnt post under resource 2
    doesnt use template called Utility (6)
    doesnt hide from menu

    is it just cuz its buggy or cuz im a moron?






  • BobRay Reply #8, 10 months, 2 weeks ago

    Reply
    Others have reported problems with setting the parent and template, but I've had trouble reproducing them. What version of MODX do you have?

    I'm not sure about hidemenu -- is the hide from menus checkbox checked when you edit the doc later in the Manager?


  • BobRay Reply #9, 10 months, 2 weeks ago

    Reply
    OK, I've confirmed bugs in the current version with parent and template and hidemenu (no fixes yet, though).



  • BobRay Reply #10, 10 months, 2 weeks ago

    Reply
    Update: First -- no bug with &parent (it was changed to &parentid a few versions ago).

    I just uploaded 1.2.0-rc2 which contains fixes for the hidemenu and template bugs as well as the completed German translation (thanks to mschlegel!) and does appear now in Package Manager.

    Note that if you installed rc1 using "search locally for packages" it won't show that an update is available in Package Manager.

    In case anyone is curious, $hidemenu and $hideMenu are not the same variable.
    The template bug was particularly insidious. It was in this line, which the debugger persisted in flying over, even though the property was not empty and my editor showed it as perfectly good code:

         } elseif (!empty($this->props['template)'])) {