An overview of documentSide, how to list of your documents, styles, list types, extra download features, reference keys and registered user controls, and more.
<?php
include_once('[DOCUMENTSIDE_PATH]/lib/dside.portable.php');
?>
<?php
$foo = new DS();
$lists = $foo->getDocuments();
foreach($lists['list'] as $list){
echo($list['document_title']);
}
?>
<?php
$foo = new DS();
$foo->orderBy = 'DESC';
$lists = $foo->getDocuments();
foreach($lists['list'] as $list){
echo($list['document_title']);
}
?>
<?php
$foo = new DS();
$foo->limit = 5;
$lists = $foo->getDocuments();
foreach($lists['list'] as $list){
echo($list['document_title']);
}
?>
<?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']);
?>
<?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>');
}
?>
<?php
$foo = new DS();
$foo->limit = 3;
$lists = $foo->getDocuments();
foreach($lists['list'] as $list){
echo($list['view']);
}
?>
<?php
$foo = new DS();
$foo->limit = 5;
$lists = $foo->getDocuments();
foreach($lists['list'] as $list){
echo($list['view']);
}
?>
<?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']);
}
?>