We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33337
    • 3,975 Posts
    Anni,

    You can post the link with details in the "You and Yours sites" forum here: http://modxcms.com/forums/index.php/board,14.0.html
      Zaigham R - MODX Professional | Skype | Email | Twitter

      Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • 1751
      • 57 Posts
      Thanks Zi I’ve posted it and amended my earlier post...

      Anni
        • 16364
        • 13 Posts
        pkBlog is working great for me, nice work! smiley

        Could anyone advice how I integrate calendar to this add-on? DittoCal should work but problem is that I don’t want every blog post to show up in calendar. I should somehow be able to choose if document shows in calendar or not.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Make a TV with a checkbox, and filter on the TV with Ditto.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 19374
            • 41 Posts
            I would like to test this but the Downloadlinks are all down at http://www.pogwatch.com/index.html can you guys help me?
              • 16278
              • 928 Posts
              The Pogwatch download is working for me right now. Please let me know if you still have a problem with it, with details of your browser etc., in case something needs adjustment.

              The latest version is also available as usual from the first post in this thread - I update the post and change the version and date in the title when a new version is available.

              I have actually made some progress on the more versatile PubKit, using PHP classes to create plugins for different flavours of post, but it’s pretty specific to a site I’m working on for now, hope to be sharing a generalized version "real soon now". Compatilibity with existing work using pkBlog is one of my aims.
              smiley KP
                • 19374
                • 41 Posts
                It works for me now, thanks ;-)
                  • 1800
                  • 52 Posts
                  Thanks so much!

                  I am rebuilding from a very old blog setup of my own and this looks a lot better!

                  Hopefully it will be up soon at http://winwatermark.com/blog
                    Minneapolis Web Design <-- where i work
                    MODx Templates <-- new project im working on
                    • 30319
                    • 406 Posts
                    I’d like to try using pkBlog twice for two different site sections, with quite different content, actually probably 3 different sections.

                    How would I do this, please?? -- copy in and rename 3 different instances of the blog files into the standard assets etc. folders?? What other values in your code would require changing??

                    Is it possible to un-publish blog entries when one wants to do so??

                    Does this Ditto utility work with your blog utility??
                    http://ditto.modxcms.com/tutorials/wordpress-style-archives.html
                    It should work since it is all Ditto...

                    Thank you, Tom
                      • 16278
                      • 928 Posts
                      Multiple sections: there’s no need to copy the snippet or code files. The logic stays the same, it’s just the parameters that change.

                      All you need to do is keep your sections under different parent resources, and create a separate post-editing and post-management resource for each. The snippet call in the editing page and Ditto calls in the others will have parameters to pick the data for the relevant section. That might include different tagging TVs, as well. You’ll also need separate config files for your previews. Make sure all the links in hidden form fields refer back to the right editing & management resources.

                      De-publication: there are a number of options here. Your choice will depend on factors such as how often you need to do this, who will be doing it, and how serious a risk it would be to have an unpublished item accidentally republished. Also whether you want the resource to be unpublished in MODx terms (Published flag cleared, not available on the web), or just hidden (have a private flag that prevents Ditto displaying it, but available publicly if someone knows the address - e.g. they bookmarked it).

                      Simple methods:
                      - Open the item for re-editing and hit the Preview button. This keeps it in view as a draft in the management screens with all other data intact, while clearing the Published flag.
                      - Set an end date that is in the past or a publication date in the future. This makes the item appear as Expired in the management screen, and makes it unpublished.
                      - Use the "Show in menu" field in the sample files and the Ditto &showInMenuOnly parameter to control the listing. Item is still "published", it’s just not displayed in the listing.

                      Less simple:
                      - Create your own TV for hide/show item, add it to the edit-post form and check it in the main include file’s postback code. This needs to happen somewhere after date comparisons and the check for Preview have adjusted the Published status, to override the status if required.
                      - Expand the above to allow for a new "action" parameter to be called from the post-management screen, adding a clickable "hide/show" field to the listing there. This would need to be handled along the same lines as the Delete action from there.

                      I have used the simple methods myself when I’ve needed to unpublish items, though it would be nice to do it thorugh a column in the management screen. I’m working on PubKit proper now, using PHP classes for custom features of different types of item, so may be able to program in a standard method for showing/hiding (avoiding direct manipulation of the Published field, because of the clash with dates and preview status). Hence I won’t be updating pkBlog for this.

                      Archive listing: Reflect should the same for resources generated by pkBlog as it does for those created in other ways.
                      laugh KP