--- /dev/null
+# memory_limit > post_max_size > upload_max_filesize
+php_value upload_max_filesize 10M
+php_value post_max_size 20M
if(!empty($_collection)) {
$_msg = 'Invalid POST data.';
+ $_data = $_REQUEST;
$Mancubus = new Mancubus($DB,$Doomguy);
$ManangeEntry = new Manageentry($DB,$Doomguy);
if(!empty($do)) {
$_msg = 'Added entry: '.$_fieldsToSave['title']['valueToSave'];
$_status = 200;
- $_data = array();
+ $_data = array($_fieldsToSave, $_owner, $_group, $_rights);
}
}
}
* Every field witch has a column in the entry table is a simple search field.
* Name starts with entry
*
+ * @see Trite->getSimpleSearchFields()
+ *
* @return array
*/
public function getSimpleSearchFields(): array {
}
}
+ $def['created'] = array('identifier' => 'created', 'displayname' => 'Created', 'type' => 'systemfield');
+ $def['modified'] = array('identifier' => 'modified', 'displayname' => 'Modified', 'type' => 'systemfield');
+ $ret = $def + $ret;
+
return $ret;
}
$queryOrder .= ' '.$this->_queryOptions['sortDirection'];
}
else {
- $queryOrder .= " DESC";
+ $queryOrder .= " ASC";
}
}
$queryOrder .= ' '.$this->_queryOptions['sortDirection'];
}
else {
- $queryOrder .= " DESC";
+ $queryOrder .= " ASC";
}
$queryLimit = '';
catch (Exception $e) {
error_log("[ERROR] ".__METHOD__." mysql catch: ".$e->getMessage());
}
- $ret = $this->_cacheLookupValuesForEntry[$this->_collectionId][$entryId][$fieldData['id']];
+ if(isset($this->_cacheLookupValuesForEntry[$this->_collectionId][$entryId][$fieldData['id']])) {
+ $ret = $this->_cacheLookupValuesForEntry[$this->_collectionId][$entryId][$fieldData['id']];
+ }
}
}
* Every field witch has a column in the entry table is a simple search field.
* Name starts with entry
*
+ * @see ManageCollectionFields->getSimpleSearchFields()
+ *
* @return array
*/
public function getSimpleSearchFields(): array {
}
}
+ $def['created'] = array('identifier' => 'created', 'displayname' => 'Created', 'type' => 'systemfield');
+ $def['modified'] = array('identifier' => 'modified', 'displayname' => 'Modified', 'type' => 'systemfield');
+ $ret = $def + $ret;
+
return $ret;
}
<div uk-dropdown>
<ul class="uk-nav uk-dropdown-nav">
<?php if(!empty($TemplateData['defaultSortField'])) { ?>
- <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>'DESC')); ?>">Default</a></li>
+ <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>'ASC')); ?>">Default</a></li>
<?php } else { ?>
- <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'DESC')); ?>">Latest</a></li>
+ <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'ASC')); ?>">Latest</a></li>
<?php } ?>
<?php
if(!empty($TemplateData['simpleSearchFields'])) {
foreach($TemplateData['simpleSearchFields'] as $k=>$v) {
?>
- <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$k,'sd'=>'DESC')); ?>"><?php echo $v['displayname']; ?></a></li>
+ <li class="<?php if(isset($v['selected'])) echo 'uk-active' ?>"><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$k,'sd'=>'ASC')); ?>"><?php echo $v['displayname']; ?></a></li>
<?php
}
}
<h3 class="uk-card-title"><?php echo $entry['fields']['title']['value']; ?></h3>
<?php } ?>
- <?php if(Summoner::ifset($entry['fields'], 'description')) { ?>
+ <?php if(Summoner::ifset($entry['fields'], array('description','value'))) { ?>
<p><?php echo $entry['fields']['description']['value']; ?></p>
<?php } ?>
</div>
$TemplateData['defaultSortField'] = $defaultSortField = $Trite->param('defaultSortField');
$TemplateData['simpleSearchFields'] = $Trite->getSimpleSearchFields();
+ if(!empty($_queryOptions['sort'])) {
+ $TemplateData['simpleSearchFields'][$_queryOptions['sort']]['selected'] = true;
+ }
if(!empty($TemplateData['defaultSortField'])) {
unset($TemplateData['simpleSearchFields'][$TemplateData['defaultSortField']]);
if(empty($_queryOptions['sort'])) {
$_queryOptions['sort'] = $TemplateData['defaultSortField'];
}
}
+
$Mancubus->setQueryOptions($_queryOptions);
$TemplateData['storagePath'] = PATH_WEB_STORAGE . '/' . $Trite->param('id');
<h3 class="uk-card-title"><?php echo $entry['fields']['title']['value']; ?></h3>
<?php } ?>
- <?php if(Summoner::ifset($entry['fields'], 'description')) { ?>
+ <?php if(Summoner::ifset($entry['fields'], array('description','value'))) { ?>
<p><?php echo $entry['fields']['description']['value']; ?></p>
<?php } ?>
</div>