Warning: Undefined variable $yourtableRecord in /var/www/vhosts/thecmsbcookbook.com/httpdocs/test.php on line 21 Warning: foreach() argument must be of type array|object, null given in /var/www/vhosts/thecmsbcookbook.com/httpdocs/test.php on line 21
Sample List Viewer - Instructions:
  1. Remove any fields you don't want displayed.
  2. Rearrange remaining fields to suit your needs.
  3. Copy and paste code into previously designed page (or add design to this page).

test3 - List Page Viewer

Record Number: 1
Title: test3
test text box: qzl
<?PHP
$old_group = ''; // init blank var.
foreach ($yourtableRecord as $record):
$group = $record['type']; // load sub-group value from record.
if ($group != $old_group) { // If different from the last sub-group value, print the sub-group name.
echo "<h5>$group</h5>";
}?>

<a href="<?PHP echo $record['_link'] ?>"><?PHP echo $record['title'] ?></a>
<?PHP echo $record['content'] ?>

<?PHP $old_group = $group; // retain sub-group name before moving to new record. ?>
<?PHP endforeach ?>
lzq
_link : javascript:alert('Set%20Detail%20Page%20Url%20for%20this%20section%20in:%20Admin%20>%20Database%20>%20Viewer%20Urls')
pdf: (Copy the tags from below that you want to use, and erase the ones you don't need)
Upload Url: /cmsAdmin/uploads/test3.pdf

Download Link: Download test3.pdf

Image Tags:

info1 (Title) :
info2 (Caption) :

Extension: pdf
isImage: No
hasThumbnail: No

image: (Copy the tags from below that you want to use, and erase the ones you don't need)
Upload Url: /cmsAdmin/uploads/4.jpg
Thumb Url: /cmsAdmin/uploads/thumb/4.jpg

Download Link: Download 4.jpg

Image Tags:

info1 (Title) :
info2 (Caption) :

Extension: jpg
isImage: Yes
hasThumbnail: Yes