[datapress] r144 committed - commented out addition of tile view if no other view selected.

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 2, 2011, 3:42:33 PM2/2/11
to datapres...@googlegroups.com
Revision: 144
Author: zbwener
Date: Wed Feb 2 12:42:10 2011
Log: commented out addition of tile view if no other view selected.
http://code.google.com/p/datapress/source/detail?r=144

Modified:
/trunk/plugin/save-exhibit.php

=======================================
--- /trunk/plugin/save-exhibit.php Tue Mar 31 14:10:32 2009
+++ /trunk/plugin/save-exhibit.php Wed Feb 2 12:42:10 2011
@@ -53,8 +53,21 @@
$ex_next_view = new WpExhibitView(array('formid'=>$formId));
array_push($views, $ex_next_view);
}
+ /*
+ Add tile view if no other views are present.
+ if(count($views) == 0) {
+ $list_view = new WpExhibitView();
+ $list_view->set('kind', 'view-tile');
+ $list_view->set('label', 'List');
+ if(count($datasources) > 0) {
+ $title = $datasources[0]->get('sourcename');
+ $list_view->set('label', $title);
+ }
+
+ }*/
$ex_exhibit->set('views', $views);

+
// Save exhibit-level configuration options
$lightbox =
(WpExhibitModel::findFormObjectValue('display-configuration-lightbox')
== 'show-lightbox');
$height =
WpExhibitModel::findFormObjectValue('display-configuration-height');

Reply all
Reply to author
Forward
0 new messages