Deprecated: Optional parameter $adminKey declared before required parameter $data is implicitly treated as a required parameter in /home/poincgoz/domains/artlantis.net/dside2.artlantis.net/lib/dside.class.php on line 529
documentSide Class Example

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.

Admin Panel

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


PDF Links

ZIP Links

                            
<?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


Click on Key Required Link and Enter 123456
                            
<?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']);
   }
?>