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');