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

    I have a weird issue where using comma separated container IDs such as &parents=`98,99` causes errors:
    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    « `98,99` is not numeric and may not be passed to makeUrl() »
     
    Parser timing
      MySQL:	0.0071 s	(12 Requests)
      PHP:	0.0580 s	 
      Total:	0.0652 s	 


    Not sure what is happening but here’s the Ditto call:
    [!Ditto? &id=`news` &parents=`[*contentID1*]` &tpl=`newsHomeTpl` &showInMenuOnly=`1` &orderBy=`menuindex ASC` &paginate=`1` &display=`10` &paginateAlwaysShowLinks=`1` &tagData=`tags` &tagDelimiter=`, ` &tagDocumentID=`55`!]

    The &parents parameter is set via a TV in the Modx Manager to allow clients to choose where they would like to pull content from.

    Cheers
      • 5532
      • 251 Posts
      Sorry, after posting I suddenly thought the input type on the TV supplying the container ID might be the cause - turns out it was.

      Changing it to "Textarea (Mini)" now allows commas...