documentSide

An overview of documentSide, how to list of your documents, styles, list types, extra download features, reference keys and registered user controls, and more.

Include Dside Class In Your Page


                        
<?php 
  include_once('[DOCUMENTSIDE_PATH]/lib/dside.portable.php');
?>
                        
                    

Simple Listing


                            
<?php
   $foo = new DS();
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['document_title']);
   }
?>
                            
                        

Document Order


                            
<?php
   $foo = new DS();
   $foo->orderBy = 'DESC';
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['document_title']);
   }
?>
                            
                        

Listing Limit


                            
<?php
   $foo = new DS();
   $foo->limit = 5;
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['document_title']);
   }
?>
                            
                        

Pagination


                            
<?php
   $foo = new DS();
   $foo->limit = 5;
   $foo->page = ((!isset($_GET['page'])) ? 1:intval($_GET['page']));
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['document_title']);
   }

   echo($lists['pages']);
?>
                            
                        

File Type Selection


                            
<?php 
  $foo = new DS();
  $foo->limit = 3;
  $lists = $foo->getDocuments();
  foreach($lists['list'] as $list){
    echo('<li class="list-group-item">'.$list['pdf_link'].'</li>');
  }
?>
                            
                        

Web Views


                            
<?php
   $foo = new DS();
   $foo->limit = 3;
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['view']);
   }
?>
                            
                        

Key Requirements


                            
<?php
   $foo = new DS();
   $foo->limit = 5;
   $lists = $foo->getDocuments();
   foreach($lists['list'] as $list){
      echo($list['view']);
   }
?>
                            
                        

Registered User Example


Click on Only Members Link
For example logged user control: Click to Login
                            
<?php
   $foo = new DS();
   $foo->limit = 5;
   $lists = $foo->getDocuments();
   $foo->isLogged = false; // Change this value with your membership logged user session controller
   foreach($lists['list'] as $list){
      echo($list['view']);
   }
?>