We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2320
    • 47 Posts
    Hi,
    I have problems using Ditto to create a blog. I tried to find help, tutorials or examples but i can’t make it work. I might need your help to figure it out.
    Basically here’s what i have :
    1. I have a chunk {{ditto_blog}}
    <div class="ditto_summaryPost">
    	<div class="date">[+editedon:date=`%B %e,  %Y`+]</div>
    	<h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>
    	<ul class="ditto_info">
    		<li class="tags">[+tagLinks+]</li>	
    		<li class="comments"><a href="[~[+id+]~]#commentsAnchor"> [!Jot?&docid=`[+id+]`&action=`count-comments`!] Comments</a></li>
    	</ul>
    	<div class="ditto_content">[+summary+]</div>
    </div>
    


    2 I have a page named blog

    [[Ditto? &startID=`110` &summarize=`10` &tpl=`ditto_blog` &paginate=`1` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &truncLen=`180` &truncText=`Read more...`]]
    [+pages+] 
    

    Here, everything’s almost fine except that i don’t see any text. It works when i don’t use truncLen and truncText. And trunctext don’t show up anyway. But it’s not a big deal for now.

    3. Then i have blog posts with text and tags. And here’s the problem. When i click on one post title, it show me the page with the full content but no title, no date, no tags, no comments, no comments form...just the content.
    I must forgot one step but i can’t figure it out. Where and what do i put to have my post list then when i click the full text with title, date, comments and everyting.
    Thank you for your help. I’m sure the answer is as stupid as my mistakes.
      • 36592
      • 970 Posts
      First of all, try adding &extenders=`summary` in your Ditto snippet call.
        • 2320
        • 47 Posts
        Hi,
        Thank you for replying. Unfortunately, it didn’t change anythyng. On my post list when i take off trunclen and &trunctext, i can see the summary but problems still there. It doesn’t work as expected.
          • 36592
          • 970 Posts
          Is the document on which Ditto snippet call is placed cached ?
            • 2320
            • 47 Posts
            On the page settings everythng is checked. I tried to uncheck cacheable or anything is does’nt work better.
            I found for the truncText and stuff...i forgot [+link+] on my Ditto template.
            But still don’t know where and how to show the comments and comment form on the page.
              • 2320
              • 47 Posts
              Ok now i don’t get it. I have now the jot-form on my post list that appers before my summary content. I don’t know what i changed but apparently not anything. When i click on m post still nothing appears after my content. I’m really lost and i exactly took the modx example from the install. Any idea ?
              Thank’s.
                • 36592
                • 970 Posts
                You seem to have some problems but I recommend to solve them step by step.
                So what is the most important problem ?

                Regarding comments, if you want comment form to be displayed on each post,
                you have to put your Jot snippet call in each post’s content area.
                Or in the chunk which is placed in the content area of each post.
                Placing it in the ditto template does not solve your problem.
                  • 2320
                  • 47 Posts
                  Hi Tkfm,

                  Thank you for spending time to reply.
                  The most important thing is that i don’t see the comments or the form when i click on one post on my main blog page. But i see the form on every summary. I attached a picture to see what i mean.
                  I’m lost cause with Wordpress it’s pretty easy. I pretty happy with modx and my website is modx driven but i can’t make a blog work. Maybe Ditto is not the right thing to do that or i did something wrong. And i don’t think i’m more stupid than anybody, i never had problem with modx since now.
                  If no one can give me simple examples of the snippets, chunks and pages for a simple blog, unfortunately i’ll have to go for Wordpress again which will be a huge pain in my heart.
                  Thank’s again.

                  P.S sorry impossible to send an attachment it keeps telling me same error "ou already submitted this post! You might have accidently double clicked, or tried to refresh. " or some other errors...i guess i’m not very lucky these times.
                    • 36592
                    • 970 Posts
                    Quote from: asthyanax at Oct 24, 2008, 01:21 AM

                    The most important thing is that i don’t see the comments or the form when i click on one post on my main blog page. But i see the form on every summary.
                    As I wrote in my previous post, I think you placed your Jot snippet call in your Ditto template chunk.
                    I don’t know how many posts are there for Ditto to summarize, but you have to place your Jot snippet call in the content field of all the posts.


                    If no one can give me simple examples of the snippets, chunks and pages for a simple blog, unfortunately i’ll have to go for Wordpress again which will be a huge pain in my heart.
                    Good example is to install MODx with its demo contents. there’s sample blog system there.
                    Why don’t you make a subdirectory and install another MODx with demo contents in there ?

                    And there’s a simple document about creating basic blog in the MODx wiki.
                    http://wiki.modxcms.com/index.php/Basic_Blog
                    Why not following to this document ?

                    Regarding WordPress and MODx blog, there are so many discussions about it in this forum.
                    IMHO, if you think blogging feature is very important to your site, choosing WordPress is better choice.
                    And if you would like to integrate MODx and WordPress, there is a snippet and plugin to do so ( called WordPressIntegrator ). But it is a little difficult to use in my experience.

                    I hope you enjoy flexibleness of MODx !! laugh
                      • 2320
                      • 47 Posts
                      Well, that’s the thing i kept the chunk from the example and i even followed all the wiki pages about blog. Still don’t work. It’s not that important to me but i don’t get it and it pisses me off a little bit. I used Ditto for my portfolio pages and everything so i think i don’t have problem with it. The only thing i can see is that there’s a bug which i don’t think or there’s a small simple stuff that i forgot and that make everything don’t work.
                      May be someone will find it so here’s what i have exactly :
                      {{ditto_blog}}
                      <div class="ditto_summaryPost">
                      	<div class="date">[+editedon:date=`%B %e,  %Y`+]</div>
                      	<h1><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h1>
                      	<ul class="ditto_info">
                      		<li class="tags">[+tagLinks+]</li>	
                      		<li class="comments"><a href="[~[+id+]~]#commentsAnchor"> [!Jot?&docid=`[+id+]`&action=`count-comments`!] Comments</a></li>
                      	</ul>
                      	<div class="ditto_content">[+summary+]</div>
                      	<div class="ditto_link">[+link+]</div>
                      </div>
                      

                      {{Comments}}
                      <div id="commentsAnchor">
                      [!Jot? &customfields=`name,email` &subscribe=`1` &pagination=`4` &badwords=`dotNet` &canmoderate=`Site Admins` !]
                      </div>
                      

                      Now a document named blog :
                      [[Ditto? &startID=`110` &summarize=`10` &commentsChunk=`Comments` &tpl=`ditto_blog`&paginate=`1` &paginateAlwaysShowLinks=`1`&extenders=`summary,dateFilter` &tagData=`documentTags`]]
                      [+pages+] 
                      

                      Then i have 3 pages with the content of my posts.
                      On the blog page, the listing shows title, date, tags, and summary now that’s fine...but also jot form for comment. I guess there’s something so make it invisible here so it’s not gonna be a problem. The problem is :
                      when i click on one post it opens a page with the full content...and the full content only no title, no date, no tags, no comments, no jot form.
                      Here where i am so far. :’(