summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2010-04-24 16:32:29 +0000
committerChristian Fowler <spider@viovio.com>2010-04-24 16:32:29 +0000
commite81244a779806daaf9dbc0404a593b7a1b0b27b2 (patch)
treefc21f7ecb5df6ce3c37a126988a877ddd79b7276 /edit.php
parent90346a3c1965d8e5b24b51dbb00c027d107fb96a (diff)
downloadfisheye-e81244a779806daaf9dbc0404a593b7a1b0b27b2.tar.gz
fisheye-e81244a779806daaf9dbc0404a593b7a1b0b27b2.tar.bz2
fisheye-e81244a779806daaf9dbc0404a593b7a1b0b27b2.zip
get generateList to show nice hierarchical display of Gallery Memberships
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/edit.php b/edit.php
index e8bd5d4..aa8d601 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.37 2010/02/08 21:27:22 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.38 2010/04/24 16:32:29 spiderr Exp $
* @package fisheye
* @subpackage functions
*/
@@ -110,10 +110,10 @@ $gBitSmarty->assign_by_ref( 'parentGalleries', $gallery );
$getHash = array(
'user_id' => $gBitUser->mUserId,
'contain_item' => $gContent->mContentId,
- 'max_records' => -1,
- 'no_thumbnails' => TRUE,
- 'sort_mode' => 'title_asc',
- 'show_empty' => TRUE,
+// 'max_records' => -1,
+// 'no_thumbnails' => TRUE,
+// 'sort_mode' => 'title_asc',
+// 'show_empty' => TRUE,
);
// modify listHash according to global preferences
if( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->hasPermission( 'p_fisheye_admin' ) ) {
@@ -121,8 +121,8 @@ if( $gBitSystem->isFeatureActive( 'fisheye_show_all_to_admins' ) && $gBitUser->h
} elseif( $gBitSystem->isFeatureActive( 'fisheye_show_public_on_upload' ) ) {
$getHash['show_public'] = TRUE;
}
-$galleryList = $gContent->getList( $getHash );
-$gBitSmarty->assign_by_ref( 'galleryList', $galleryList );
+$galleryTree = $gContent->generateList( $getHash, array( 'name' => "gallery_id", 'id' => "gallerylist", 'item_attributes' => array( 'class'=>'listingtitle'), 'radio_checkbox' => TRUE, ) );
+$gBitSmarty->assign_by_ref( 'galleryTree', $galleryTree );
$gContent->invokeServices( 'content_edit_function' );