<div id="banner"> <?php $a = new Area('Banner'); if (($a->getTotalBlocksInArea($c) > 0) || ($c->isEditMode())) { $a->setBlockLimit(1); $a->display($c); } else { echo "No banner available."; } ?> </div>
Loader::model('file_list'); Loader::model('file_set'); $fs = FileSet::getByName('file_set_name'); $fileList = new FileList(); $fileList->filterBySet($fs); $fileList->filterByType(FileType::T_IMAGE); $fileList->sortByFileSetDisplayOrder(); $files = $fileList->get(1000,0);
You are allowed to delete your post for 5 minutes after it's posted.
Delete
You must have a user account and be signed to perform this action.
$files now has an array of all the file objects in the file set file_set_name