We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21191
    • 236 Posts
    I have this call
    [[Ditto? &startID=`[[UltimateParent? &top=`3`]]` &summarize=`2` &total=`2` &hideFolders=`1`&tpl=`podcast`&sortBy=`pub_date`]]

    the document structure is

    Programs
    +Subject <-- player reading podcast with subject overview
    +Docs < --- 5 of these docs per subject, all in one podcast
    +Podcast <--- call in this document

    anyway I get this error

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
      Error: 	array_values(): The argument should be an array	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/var/www/html/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	372	 
     
    Parser timing
      MySQL: 	0.0109 s	(5 Requests)
      PHP: 	0.0498 s	 
      Total: 	0.0606 s


    it works fine if I put the startID i’m looking for... I’m thinking maybe it’s in an infinte loop somehow.. but my brain is fried...

    basiclly I’m trying to build mini podcasts from weekly folders with 5 docs (+1 for the podcast) and the podcast file is inside the subject folder

    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0">
    	<channel>
    		
    		<title>Her Place Radio</title>
    		<link>http://Herplaceradio.com</link>
    		<description>Audio from Herplaceradio.org</description>
    
    		<category>Audio Blogs</category>
    		<language>en-us</language>
    		<copyright>© 2007 herplaceradio.org</copyright>
    		<generator>Wavestatic Studios</generator>
    
    		<managingEditor>[email protected] ()</managingEditor>
    		<webMaster></webMaster>
    		<ttl>60</ttl>
    
          <itunes:author></itunes:author>
          <itunes:subtitle></itunes:subtitle>
          <itunes:category text="Audio Blogs">
    			<itunes:category text=""/>
    
    		</itunes:category>
          <itunes:summary></itunes:summary>
          <itunes:owner>
          <itunes:name></itunes:name>
          <itunes:email>[email protected]</itunes:email>
          </itunes:owner>
          <itunes:explicit>no</itunes:explicit>
    		<image>
    
    			<url></url>
    			<title></title>
    			<link></link>
    		</image>
    		<itunes:image href="" />
    
    [[Ditto? &startID=`[[UltimateParent? &id=`2`&top=`3`]]` &summarize=`2` &total=`2` &hideFolders=`1`&tpl=`podcast`&sortBy=`pub_date`]]
    </channel>
    </rss>


    thanks in advance!
      ~Shawn Himmelberger
      Check out my MODx Development and MODx Design Company - Himmelberger Design
      • 11975
      • 2,542 Posts
      [!Ditto? &startID=`[[UltimateParent? &top=`3`]]` &summarize=`2` &total=`2` &hideFolders=`1`&tpl=`podcast`&sortBy=`pub_date`!]

      With the current parser this is the only way to use a snippet as a paramfor another snippet.

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 21191
        • 236 Posts
        ohh I jsut had to call the ditto call uncached?
          ~Shawn Himmelberger
          Check out my MODx Development and MODx Design Company - Himmelberger Design
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: neon_eddy at Mar 04, 2007, 04:29 PM

          ohh I jsut had to call the ditto call uncached?
          Correct; the current MODx tag parser/template engine does not support nested tags of the same type, so you have to cheat a little until 0.9.7...