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

    following problems: I’m writing on a Newsblogsystem made with Ditto and NewsManager. My reference tutorial is http://wiki.modxcms.com/index.php/Basic_Blog but when I want to request my pages to write an article or display newest articles on frontpage nothing is displayed - I think sth. is wrong with my Ditto/NewsManager snippet request:
    [! NewsPublisher? &folder=`12` &canpost=`Newsschreiber,Newspublisher` &makefolder=`1` &formtpl=`BlogForm` &template=`DittoTemplate` &rtcontent=`tvblogContent`!]
    

    that’s the request for the page to write articles.

    and that’s to display newest articles on a page:
    [[ Ditto? startId=`12` &summarize=`15` &tpl=`DittoTemplate` &paginate=`1` &sortBy=`pub_date` &sortDir=`DESC` &trunc=`1` &truncLen=`300` &truncText=`weiterlesen...` ]]
    
    zeige [+start+] - [+stop+] von [+total+] Artikeln
    [+previous+] [+pages+] [+next+]
    


    Can anyone help me please? Of course I’m new to MODx and it would be useful to get tricks and help for this. smiley
      • 1122
      • 209 Posts
      I have marked with capital "X" places in your code where there are mistakes.
      You have unwanted space character before "Ditto" and "NewsPublisher" names in snippet’s calls -- these spaces are treated as a part of snippet’s names. Also you have missed ampersand character before "startId" parameter.

      [!XNewsPublisher? &folder=`12` &canpost=`Newsschreiber,Newspublisher` &makefolder=`1` &formtpl=`BlogForm` &template=`DittoTemplate` &rtcontent=`tvblogContent`!]
      
      [[XDitto? XstartId=`12` &summarize=`15` &tpl=`DittoTemplate` &paginate=`1` &sortBy=`pub_date` &sortDir=`DESC` &trunc=`1` &truncLen=`300` &truncText=`weiterlesen...` ]]
      

        • 29004
        • 11 Posts
        Thanks for your tips. But it already doesn’t work... undecided
          • 4310
          • 2,310 Posts
          &startID

          Note the capital I and D
            • 29004
            • 11 Posts
            Already doesn’t work. No template and nothing else but a white page is displayed when requesting this page.
            huh