help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] Benutzerdefinierte Felder in Simplelist

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago - 7 years 5 months ago
#23911
for each custom field you need to add:
between
<colgroup> </colgroup>
<col width="1%" class="jem_col_test" />
between
<thead> </thead>
<th id="jem_test" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_TEST', 'a.custom1', $this->lists, $this->lists); ?></th>
and between
<tbody> </tbody>[/quote]
<td headers="jem_test" align="left" valign="top"><?php echo $row->custom1 ? $this->escape($row->custom1) : '-'; ?></td>
Last edit: 7 years 5 months ago by jojo12.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23912
Ich habe es ausprobiert, aber leider erscheint in der einfachen Tabelle kein "custom field 1".
Code:
<form action="<?php echo htmlspecialchars($this->action); ?>" method="post" name="adminForm" id="adminForm"> <?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> <div id="jem_filter" class="floattext"> <?php if ($this->settings->get('global_show_filter',1)) : ?> <div class="jem_fleft"> <?php echo '<label for="filter">'.JText::_('COM_JEM_FILTER').'</label>&nbsp;'; echo $this->lists['filter'].'&nbsp;'; ?> <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox" onchange="document.adminForm.submit();" /> <button class="" type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> <button class="" type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> </div> <?php endif; ?> <?php if ($this->settings->get('global_display',1)) : ?> <div class="jem_fright"> <?php echo '<label for="limit">'.JText::_('COM_JEM_DISPLAY_NUM').'</label>&nbsp;'; echo $this->events_pagination->getLimitBox(); ?> </div> <?php endif; ?> </div> <?php endif; ?> <table class="eventtable" style="width:<?php echo $this->jemsettings->tablewidth; ?>;" summary="jem"> <colgroup> <?php /*<col width="1%" class="jem_col_num" />*/ ?> <?php if (empty($this->print) && !empty($this->permissions->canPublishEvent)) : ?> <col width="1%" class="jem_col_checkall" /> <?php endif; ?> <col width="<?php echo $this->jemsettings->datewidth; ?>" class="jem_col_date" /> <?php if ($this->jemsettings->showtitle == 1) : ?> <col width="<?php echo $this->jemsettings->titlewidth; ?>" class="jem_col_title" /> <?php endif; ?> <col width="1%" class="jem_col_test" /> <?php if ($this->jemsettings->showlocate == 1) : ?> <col width="<?php echo $this->jemsettings->locationwidth; ?>" class="jem_col_venue" /> <?php endif; ?> <?php if ($this->jemsettings->showcity == 1) : ?> <col width="<?php echo $this->jemsettings->citywidth; ?>" class="jem_col_city" /> <?php endif; ?> <?php if ($this->jemsettings->showstate == 1) : ?> <col width="<?php echo $this->jemsettings->statewidth; ?>" class="jem_col_state" /> <?php endif; ?> <?php if ($this->jemsettings->showcat == 1) : ?> <col width="<?php echo $this->jemsettings->catfrowidth; ?>" class="jem_col_category" /> <?php endif; ?> <?php if ($this->params->get('displayattendeecolumn') == 1) : ?> <col width="<?php echo $this->jemsettings->attewidth; ?>" class="jem_col_atte" /> <?php endif; ?> <col width="1%" class="jem_col_status" /> </colgroup> <thead> <tr> <?php /*<th ><?php echo JText::_('COM_JEM_NUM'); ?></th>*/ ?> <?php if (empty($this->print) && !empty($this->permissions->canPublishEvent)) : ?> <th class="sectiontableheader center"><input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /></th> <?php endif; ?> <th id="jem_date" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php if ($this->jemsettings->showtitle == 1) : ?> <th id="jem_title" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php endif; ?> <th id="jem_test" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_TEST', 'a.custom1', $this->lists, $this->lists); ?></th> <?php if ($this->jemsettings->showlocate == 1) : ?> <th id="jem_location" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php endif; ?> <?php if ($this->jemsettings->showcity == 1) : ?> <th id="jem_city" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php endif; ?> <?php if ($this->jemsettings->showstate == 1) : ?> <th id="jem_state" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php endif; ?> <?php if ($this->jemsettings->showcat == 1) : ?> <th id="jem_category" class="sectiontableheader" align="left"><?php echo JHtml::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></th> <?php endif; ?> <?php if ($this->params->get('displayattendeecolumn') == 1) : ?> <th id="jem_atte" class="sectiontableheader" align="center"><?php echo JText::_('COM_JEM_TABLE_ATTENDEES'); ?></th> <?php endif; ?> <th width="1%" class="center" nowrap="nowrap"><?php echo JText::_('JSTATUS'); ?></th> </tr> </thead> <tbody> <?php if (count((array)$this->events) == 0) : ?> <tr align="center"><td colspan="0"><?php echo JText::_('COM_JEM_NO_EVENTS'); ?></td></tr> <?php else : ?> <?php foreach ($this->events as $i => $row) : ?> <tr class="row<?php echo $i % 2; ?>"> <?php /*<td><?php echo $this->events_pagination->getRowOffset( $i ); ?></td>*/ ?> <?php if (empty($this->print) && !empty($this->permissions->canPublishEvent)) : ?> <td class="center"> <?php if (!empty($row->params) && $row->params->get('access-change', false)) : echo JHtml::_('grid.id', $i, $row->eventid); endif; ?> </td> <?php endif; ?> <td headers="jem_date" align="left"> <?php echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime); ?> </td> <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?> <td headers="jem_title" align="left" valign="top"> <a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>"> <?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?> </a> </td> <?php endif; ?> <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?> <td headers="jem_title" align="left" valign="top"> <a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>"> <?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?> </a> </td> <?php endif; ?> <td headers="jem_test" align="left" valign="top"><?php echo $row->custom1 ? $this->escape($row->custom1) : '-'; ?></td> <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?> <td headers="jem_title" align="left" valign="top"> <?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?> </td> <?php endif; ?> <?php if ($this->jemsettings->showlocate == 1) : ?> <td headers="jem_location" align="left" valign="top"> <?php if (!empty($row->venue)) : if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) : echo "<a href='".JRoute::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; else : echo $this->escape($row->venue); endif; else : echo '-'; endif; ?> </td> <?php endif; ?> <?php if ($this->jemsettings->showcity == 1) : ?> <td headers="jem_city" align="left" valign="top"> <?php echo $row->city ? $this->escape($row->city) : '-'; ?> </td> <?php endif; ?> <?php if ($this->jemsettings->showstate == 1) : ?> <td headers="jem_state" align="left" valign="top"> <?php echo $row->state ? $this->escape($row->state) : '-'; ?> </td> <?php endif; ?> <?php if ($this->jemsettings->showcat == 1) : ?> <td headers="jem_category" align="left" valign="top"> <?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> </td> <?php endif; ?> <?php if ($this->params->get('displayattendeecolumn') == 1) : ?> <td headers="jem_atte" align="center" valign="top"> <?php if ($this->jemsettings->showfroregistra || ($row->registra & 1)) { $linkreg = 'index.php?option=com_jem&amp;view=attendees&amp;id='.$row->id.'&Itemid='.$this->itemid; $count = $row->regCount; if ($row->maxplaces) { $count .= '/'.$row->maxplaces; if ($row->waitinglist && $row->waiting) { $count .= ' + '.$row->waiting; } } if (!empty($row->unregCount)) { $count .= ' - '.(int)$row->unregCount; } if (!empty($row->invited)) { $count .= ', '.(int)$row->invited .' ?'; } if (!empty($row->regTotal) || empty($row->finished)) { ?> <a href="<?php echo $linkreg; ?>" title="<?php echo JText::_('COM_JEM_MYEVENT_MANAGEATTENDEES'); ?>"> <?php echo $count; ?> </a> <?php } else { echo $count; } } else { echo JHtml::_('image', 'com_jem/publish_r.png',NULL,NULL,true); } ?> </td> <?php endif; ?> <td class="center"> <?php // Ensure icon is not clickable if user isn't allowed to change state! $enabled = empty($this->print) && !empty($row->params) && $row->params->get('access-change', false); echo JHtml::_('jgrid.published', $row->published, $i, 'myevents.', $enabled); ?> </td> </tr> <?php $i = 1 - $i; ?> <?php endforeach; ?> <?php endif; ?> </tbody> </table>

Irgend etwas mache ich da noch falsch.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23913
Ich habe die ganze Tabelle gelöscht. Trotzdem erscheint die Tabelle in einfaachen
Liste.
Die Datei default_events.php wird in der Ausgabe "einfache Liste" warscheinlich nicht verwendet. Es muss noch eine weitere Datei geben, wo die custom fields eingetragen werden müssen.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23914
Da muss bei dir was falsch sein. Bei mir erschwint es in der einfachen Liste.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23915
Wenn ich die komplette Tabelle aus default_events.php raus lösche, müsste die Ausgabe in einfache Liste leer sein. Es steht aber trotzdem alles normal drin.
Ich habe auch die neueste Version von JEM drauf.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23919
hat keiner eine Idee wie man das hinbekommt?!

Please Log in or Create an account to join the conversation.

Time to create page: 0.505 seconds