We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4385
    • 372 Posts
    30 documents or 30 chunks. Seems about the same. wink

    If you want more information than just an image.

    Create a snippet that get all documents in a container or folder.

    name: getDocsArray
    desc: make arrays from parent folders
    <?php
    $query_children = $modx->db->query('
    		SELECT cat.id,cat.pagetitle,cat.alias
    		FROM '.$modx->getFullTableName('site_content').' AS cat
    		WHERE
    		cat.parent = "'.$parentFolder.'"
    		ORDER BY
    		cat.pagetitle
    	');
         
        $arr_categories = array();
        while ($row = $modx->db->getRow($query_children)) {
        $arr_categories[] = $row['pagetitle']."==".$row['id'];
        }
        $output = implode("||",$arr_categories);
        return $output;
    ?>
    


    For your TV in Input Option Values:

    use this (where 25 is the id of your parent folder)

    @EVAL return $modx->runSnippet('getDocsArray',array('parentFolder'=>'25'));


    Widget Delimited list
    Delimiter ,

    This will create a list of checkboxes for each document in the folder.

      DropboxUploader -- Upload files to a Dropbox account.
      DIG -- Dynamic Image Generator
      gus -- Google URL Shortener
      makeQR -- Uses google chart api to make QR codes.
      MODxTweeter -- Update your twitter status on publish.
      • 22840
      • 1,572 Posts
      Cheers for that, will look into it and let you know, looks like it could have some benefits grin

      Have just got the other one working so just to let others know it does work out of the tin.

      Thanks for all the help both grin