• Pubkit only publishing invisible document#

  • smcilreavy Reply #1, 1 year, 4 months ago

    Reply
    Hi Guys,

    Im using pubkit to publish documents from the frontend of my site.

    When the document is published it is always invisible (greyed out) in the site tree.

    Ive tried changing the &showinmenu variable and I have also tried with &hidemenu

    Any clues why I cant get it to publish a publickly visible doc?

    Im in Modx 1.0.0


  • Donald Warren Reply #2, 1 year, 4 months ago

    Reply
    I am having a similar problem. using the frontend of the site I would like to post Events using the demo pkevent manager. However the post will not publish with the show in menu option checked. everything else works great.

    I would like to have them published showing in a menu so that the visitors to the site can see them. any ideas on how to solve this problem. It would be very helpful.

    I am using MODX 1.0.4



    Thanks






  • smcilreavy Reply #3, 1 year, 4 months ago

    Reply
    I dont have a solution for this, but one thing that I discovered was...

    As you publish to a document id (eg 35)...you add and entry to the database that has the pared id (35) written to the db.

    However, as you add the entry it doesn't turn on the isfolder option in the database of the parent document. So the parent document isn't listed as a container in Modx. When you switch the parent to a container (try in manager), the documents often appear.

    Hope that helps.


  • mrhaw Reply #4, 1 year, 4 months ago

    Reply
    Haven't used pubkit, but are you guys doing
    &clearcache=`1` and are setting a publish/creation date
    that are _before_ the date of the web server.

    If a pub date is set afterwards MODx will wait to publish it.


  • Donald Warren Reply #5, 1 year, 4 months ago

    Reply
    Thanks for your help.

    With the problem I have the doc. is published, however it is not publishing with this show in menu set to true. being new to modx it may be something very easy that I am missing. Event doc is set as a container, and the pkevent works as I think it is suppose to. But I would like to use it to allow members of the non-profit to post up and coming events that will be in a link using wayfinder.

    this is the site www.mysite.org. if you look at the events link it shows the events. I wont to allow users to post through the admin site, and have it show here.

    if you guys have any ideas this would be great.

    is there something that I can place in this like &showinmenu=`1` that when it publishes a doc it also checks the show in menu option?

    [!PubKit?class=`event` &folder=`217` &template=`Basic` &postid=`217` &tags=`pkEventType` &rtcontent=`pkRichContent` &formtpl=`pk.event.input.tpl`!]



  • mrhaw Reply #6, 1 year, 4 months ago

    Reply
    Quote from: smcilreavy at Jan 01, 2011, 06:50 PM
    When the document is published it is always invisible (greyed out) in the site tree.
    "regular" text = visible in the menu AND published
    "grey regular" text = not visible in the menu AND published
    "grey italicized" text = NOT published (menu visibility is irrelevant.
    http://modxcms.com/forums/index.php/topic,42556.msg254919.html#msg254919

    Quote from: smcilreavy at Jan 03, 2011, 09:10 PM
    However, as you add the entry it doesn't turn on the isfolder option in the database of the parent document. So the parent document isn't listed as a container in Modx. When you switch the parent to a container (try in manager), the documents often appear.
    Can pubkit createolders?¿
    http://www.pogwatch.com/pubkit/pubkit-package/pubkit-parameters.html

    Quote from: Magavolt at Jan 03, 2011, 11:40 PM
    is there something that I can place in this like &showinmenu=`1` that when it publishes a doc it also checks the show in menu option?

    [!PubKit?class=`event` &folder=`217` &template=`Basic` &postid=`217` &tags=`pkEventType` &rtcontent=`pkRichContent` &formtpl=`pk.event.input.tpl`!]

    Yes -- add &showinmenu=`1` and &clearcache=`1`
    http://www.pogwatch.com/pubkit/pubkit-package/pubkit-parameters.html


  • Donald Warren Reply #7, 1 year, 4 months ago

    Reply
    Thanks again for the help.

    I tried what you suggested with out any luck.
    Yes -- add &showinmenu=`1` and &clearcache=`1`
    The doc publishes as a "grey regular" text = not visible in the menu AND published.


  • mrhaw Reply #8, 1 year, 4 months ago

    Reply
    Quote from: http://www.pogwatch.com/blog/726.html#jc7cfa00bd9
    Although showinmenu is listed with default 0, it actually does not work. I had to use hidemenu set to 1.

    So try by also adding &hidemenu=`1` or &hidemenu=`0`


  • kp52 Reply #9, 1 year, 4 months ago

    Reply
    The &showinmenu parameter is not quite performing as advertised, I'm afraid, because of factors connected with its heritage in pkBlog. I'll try to fix it in the next release.

    Meanwhile, here are two ways to get the required result in your PubKit items:

    1) Add a hidden field to your input form setting a variable called "show" to "1"
    <input name="show" type="hidden" value="1" />


    2) Closer to the original way the &showinmenu parameter was designed to operate, add a checkbox to your form with a name of "show" and value from placeholder "showInMenu" (note the case). This will be initialized to "checked" if &showinmenu=`1`
    <input type="checkbox" value="[+showInMenu+]" name="show">


    KP


  • Donald Warren Reply #10, 1 year, 4 months ago

    Reply
    Thanks so much guys! Works great.
    <input>

    This is what I was looking for.