Feature #16668 ยป fieldListByTs.diff
class.tx_newloginbox_pi3_dt.php 2006-10-25 19:21:15.000000000 +1000 | ||
---|---|---|
$this->manualFieldOrder_details = t3lib_div::trimExplode(',', $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'field_orderDetails'), 1);
|
||
$this->manualFieldOrder_list = t3lib_div::trimExplode(',', $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'field_orderList'), 1);
|
||
// Get fields from typoscript else flexform. Otherwise defaults will be used
|
||
if ($this->conf['singleView.']['fieldList']) {
|
||
$this->manualFieldOrder = TRUE;
|
||
$this->manualFieldOrder_details = t3lib_div::trimExplode(',', $this->conf['singleView.']['fieldList'], 1);
|
||
}
|
||
if ($this->conf['listView.']['fieldList']) {
|
||
$this->manualFieldOrder = TRUE;
|
||
$this->manualFieldOrder_list = t3lib_div::trimExplode(',', $this->conf['listView.']['fieldList'], 1);
|
||
}
|
||
switch((string)$conf['CMD']) {
|
||
case 'singleView':
|
||
... | ... | |
default:
|
||
if (strstr($this->cObj->currentRecord, 'tt_content')) {
|
||
$conf['pidList'] = $this->cObj->data['pages'];
|
||
$conf['recursive'] = $this->cObj->data['recursive'];
|
||
if (!$conf['pidList']) {
|
||
$conf['pidList'] = $this->cObj->data['pages'];
|
||
}
|
||
if (!$conf['recursive']) {
|
||
$conf['recursive'] = $this->cObj->data['recursive'];
|
||
}
|
||
}
|
||
return $this->pi_wrapInBaseClass($this->listView($content, $conf));
|
||
break;
|
||
... | ... | |
// This sets the title of the page for use in indexed search results:
|
||
if ($this->internal['currentRow']['title']) $GLOBALS['TSFE']->indexedDocTitle = $this->internal['currentRow']['title'];
|
||
if ($this->manualFieldOrder) {
|
||
if ($this->manualFieldOrder && $this->manualFieldOrder_details[0]) {
|
||
$rows = '';
|
||
foreach ($this->manualFieldOrder_details as $fieldName) {
|
||
switch((string)$fieldName) {
|
||
... | ... | |
$editPanel = $this->pi_getEditPanel();
|
||
if ($editPanel) $editPanel = '<td>'.$editPanel.'</td>';
|
||
if ($this->manualFieldOrder) {
|
||
if ($this->manualFieldOrder && $this->manualFieldOrder_list[0]) {
|
||
$cells = array();
|
||
foreach($this->manualFieldOrder_list as $fieldName) {
|
||
if ($fieldName != 'email' || $this->lConf['show.']['email']) {
|
||
... | ... | |
*/
|
||
function pi_list_header() {
|
||
if ($this->manualFieldOrder) {
|
||
if ($this->manualFieldOrder && $this->manualFieldOrder_list[0]) {
|
||
$cells = array();
|
||
foreach($this->manualFieldOrder_list as $fieldName) {
|
||
if ($fieldName != 'email' || $this->lConf['show.']['email']) {
|