We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3866 ☆ A M B ☆
    • 350 Posts
    Hi Cheesy,
    Thx again PK!!!.

    At last I have a little ditto problem. Ok I’m not at the right place here on the forum, but I didn’t find a good link yet.

    I made the needed TV’s. Used the needed widgets. I put the needed [+myTV+]’s placeholders into a chunk like all the other TV’s and put the name of the chunk in the ditto snippet like so: &tpl=`myChunk`.
    I used the &language=`nederlands` caus I’m Dutch speaking.

    It doesn’t work and the weird thing is if I erase both the chunk and the form in the heredoc TPL he don’t give an error.
    Ok I thought, maby if he doesn’t find anything, probably he use the standard english.inc.php file. So I did a test, erased the form in the heredoc TPL; as well.
    And Shocked you never guess. When I reload the newsblog page, he shows everything as if nothing ever happend, but without the extra TV’s

    So I restarted my windows, maybe there was a system catch problem, but that’s not helping. I made some extra newsblog items in mind that new changes only work on new items. Doesn’t work either.

    I looked at the forum pages, the ditto site and so on, nothing to find.

    Does somebody have a good link where I can find more issues on this matter?
    Or does somebody ever had the same problem.

    Thx in advance
    Benny
      Helen Warner
      Number one pixel!
      Proud to be linked with MODX at Crimson Pixel
      • 16278
      • 928 Posts
      A minor update is coming soon, when I have time to package it up has now been posted (11 Nov). Meanwhile, the The main point of it is that you can restrict the conversion to entities for the form display so it only applies to strings.

      In v1.4.1, change lines 355-360
      	// NB applied to all fields (only relevant to text and textarea)
      // assuming XHTML, single quotes are left alone
      	foreach($fields as $n=>$v) {
              $v = htmlspecialchars($v);
      		$modx->setPlaceholder($n, $v);
      	}
      
      

      to
      // convert quotes etc. so text fields are not mangled
      // assuming XHTML, single quotes are left alone
      	foreach($fields as $n=>$v) {
      		if (is_string($v)) {
      	        $v = htmlspecialchars($v);
      		}
      		$modx->setPlaceholder($n, $v);
      	}
      

      (I just wished there was way to check if a variable is a string in PHP, and suddenly there was one!).

      On another point that came up in an earlier post about apostrophes getting escaped: I still haven’t observed this to happen for me, but a recent thread leads me to think that having PHP "magic quotes" on might have something to do with it?
      smiley KP
        • 5091
        • 332 Posts
        Hi KP, this pkBlog has a great potential grin

        I have tested it on a site and so far everything works fine. Still have difficulty to decide if I should go with this or setup a WordPress blog though, as many have mentioned in other threads, WP is a very powerful blogging tool, especially since v2.7+ it has become a very convincing reason to use. pkBlog will be fine for half a year to come for this site I am building, but may becomes unmanageable.

        My Wishlist for pkBlog:
        1. archives feature
        2. sticky post
        3. categories - (utilize PostTags?)
        4. related posts

        I also have a concern building blog in MODx, that is, for whatever reason, client wants to move the blog section to WordPress or other blogging software, how is the export/import going to work. Other blogging systems’ blog posts are very portable, very easy to import/export to other systems, but with MODx we are doing it as per document and export to Static HTML isn’t really a good option. Perhaps this should add to my wishlist too.
          • 8542
          • 37 Posts
          I do have a question. I have everything working 100% except one. The tags work/display on the pages properly. However, when clicking the tag, it SHOULD show a list of all the content matching that tag. This is not the operation I am receiving. I simply get the same list.
            • 16278
            • 928 Posts
            I’d start by checking what URL is generated when you click on a tag link.
            If you could post your Ditto call, the tpl chunk in the list page and tagging TV, someone might spot the problem?
            smiley KP
              • 5507
              • 14 Posts
              Hello there!

              I’m kind of new to this sort of thing, but I really like the prospect of the pkBlog and whatnot, and really want to use it. However, I am tripping all over myself with tags...

              More specifically, I can’t seem to get my tags to show up in the post-edit page, which means that I can’t select any, so I can’t post anything! Durrrrrrrr. I believe I followed the instructions correctly, making all the snippets/chunks/templates, replacing pwTags with the default pkTags, naming the TV the same and adjusting the snippet call in post-edit page like so:

              [!PubKitBlog? &folder=`20` &postid=`20` &tags=`pkTags` &template=`pkBlogPost` &rtcontent=`pkRichContent` &formtpl=`@FILE:blog` &delimiter=`,` &tagFormat=`chk` !]

              I changed the pkBlogPost to also reflect pkTags instead of pwTags, as well as making &tagShow=`20` (same folder as the blog, right?)

              Do y’all have any idea what I’m doing wrong, or need more info?

              Thanks!



                • 16278
                • 928 Posts
                First thing is to check your tags TV definition, and particularly if it has been marked to be available to the templates in question. Try creating a document using the template(s) you are using for your posts, the post-edit page and the listing page. Does the tag TV show up correctly below the content area?
                smiley KP
                  • 5507
                  • 14 Posts
                  Thanks KP!

                  That was the problem.. the call in the template I was using was malformed (and I thought I was using a different template than I was..durrrrrrr)

                    • 36624
                    • 535 Posts
                    Hello,

                    i just installed your kit, this is great !

                    i work in a subfolder /new/ and i had to adjust every links prepending them with [(base_url)].

                    now i face a problem when adding an image in my post with TinyMCE in "pkRichContent".

                    if i look in my source code page i see :

                    <p><img src=\"/new/assets/images/logo.png\" alt=\"\" width=\"159\" height=\"81\" /></p>
                    


                    i can’t find good settings in TinyMCE for that problem.

                    Anyone know how to prevent that behaviour ?

                    pkBlog 1.4.2 and Evo 1.0.2

                      CTRL+SHIFT+U - Clear Cache
                      CTRL+SHIFT+H - Hiding Heft Panel
                      CTRL+SHIFT+N - Fast Create Resource
                      CTRL+ALT+P - Preview Recource (in edit resorce window)
                      CTRL+ALT+S - Save
                      • 1751
                      • 57 Posts
                      Hi I would just like to thank KP52 for this great add-on.
                      I’m adding this to 3 sites I’m designing and building for clients and have just mad the first one LIVE!!
                      I’m so pleased with the result am I allowed to post a link here? if not then let me know and I will delete it, but I thought some people may like to see this extra implemented...
                      I’ve posted a link to the site in the topic below if anyone is interested:
                      http://modxcms.com/forums/index.php/topic,43215.0.html

                      Once again, many many thanks!

                      Anni