We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1751
    • 57 Posts
    Okay, that worked for some reason, I also changed my template name to BlogPosts to avoid any possible conflicts...

    But, and I think it’s unrelated, I’ve just noticed that if I go to Manage Posts and click on the name of one of the posts to edit it, the main text box for the post is not populated with the article (the title, heading, intro and date etc are all populated...

    Any ideas anyone?

    Thanks

    Anni

    PS Kongongo,
    I too had the problem with posts not being deleted and found that I needed to add the confirmDeletion chunk
    <form method="post">
    <input name="confirmDeletion" type="hidden" value="on" />
    <input type="hidden" name="docId" value="[+docId+]">
    <input type="hidden" name="returnId" value="[+returnId+]">
    <p>Delete item headlined:<br />
    [+title+] <br />
    [+headline+]?</p>
    <input name="delete" type="submit" value="Yes" />
    <input name="erase" type="submit" value="No" />
    </form>
     


    Hope this helps
      • 16183
      • 1,390 Posts
      Anni,

      Thx! It does work...I missed that bit...I didn’t have that chunk..

      One thing though, for Keith actually, deleting posts this way deletes them completely (purging and all)...unlike the MODx way of deleting docs..but keeping them in the tree in case one wants to recover them. Could this be remedied?

      Anni, any ideas why new documents are not being shown on the manage posts page? How does your setup look like if you don’t mind sharing (especially your manage posts page?)..

      cheers/k
        • 1751
        • 57 Posts
        Hi
        Have you made sure all the references to the post folder have been changed to reflect the id of the folder your posts are in?
        eg
        &folder=`2`
        or
        parents

        The manage posts page should include the ditto call
        [!Ditto?parents=`2` &config=`bloglist` &extenders=`pkStatus`&debug=`0` !]

        My set up still isn’t 100%, so I don’t want to give you wrong info by posting here til it’s working right...

        My main issue now is that when I try to edit a post from the manage posts page, the post/article main body doesn’t get prepopulated with the current content for editing... Any help would be appreciated..


        Anni
          • 16183
          • 1,390 Posts
          Ye...I’ve done all that I think...I’ll dig deeper when I am not so tired. Thx anyways. Sorry I don’t have answers to your current problem. sad

          cheers/k
            • 1751
            • 57 Posts
            No Problem, hopefully someon else will know the answer to my problem..

            For your current problem, see my edits in my last post and also I just remembered
            I also had to edit bloglist.config
            $parents = '50';


            This may help..

            Anni
              • 16183
              • 1,390 Posts
              Quote from: designetic at Aug 28, 2009, 05:37 AM

              kongondo, I have to say you are the bestest user in whole wide modx world. your feedback is very useful and informative to any developer.

              <brainstorm>
              on your last point about the database vs document approach.

              Being relatively new to MODx development(slightly over a year) and still getting to grips with its power...

              I think most module/snippet developers have a difficult time deciding on going the database route(i.e no referrence or linkage to MODx documents for snippet-data) OR the document route. Taking the document route would mean easier access to very powerful and useful tools like Ditto,Jot..etc. If one takes the database route, i.e. no linkage to documents, then it means you would have to code smart and probably hard to make your data entities accessible to Ditto and others...without overwhelming that document tree. (is this where concern also lies?)

              I have thought about it too and thought maybe if one creates an unpublished document associated with a data item used by a snippet or module, then one can take full advantage of Ditto and others. But how would that affect viewing the items if they are unpublished documents?

              I also thought we should have an extra field or enum in some future MODx version(s), that would allow a document to be either "normal" or "data item". Default would be normal. If it is a "data item", then snippets and modules can relate or link their data to the document, and perhaps it could also have an option to display or not display it in the document tree.
              </brainstorm>

              will try out pkBlog, by the way

              designetic,

              Oops, forgot to reply.

              Thanks for your insights. I’m no developer but would really like to hear what they have to say about your thoughts...

              Did you try out pkblog yet? It is amazing!

              cheers/k
                • 7155
                • 160 Posts
                havent tried it yet, but your comments will push me to do so. I do have some good use for it in some project I’m working on. I wonder if PubKit will be released soon as well.
                  • 16183
                  • 1,390 Posts
                  Quote from: designetic at Sep 01, 2009, 08:28 AM

                  havent tried it yet, but your comments will push me to do so. I do have some good use for it in some project I’m working on. I wonder if PubKit will be released soon as well.

                  I know Keith is busy..but hope to see that soon too. I think he’s working on pkEvents (or something) too.

                  cheers/k
                    • 1751
                    • 57 Posts
                    Hi all, just to let you know I solved my issue with the edit pages not populating the main article text.
                    It was of course my error. And a very basic one at that. But it took a long time to find.
                    The tv I had created for pkRichContent had [+newsBody+] in the input option values instead of in the default content box!!

                    Now on to the next part of the set up....

                    Anni
                      • 16278
                      • 928 Posts
                      Glad you found that, I thought it might be the problem but didn’t have time to post anything yesterday. Hope to publish an update today filling some documentation gaps and making tagging more flexible.
                      laugh KP