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

[SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago - 7 years 5 months ago
#23905
Ich habe ein ganz spezielles Problem.

Die meisten Funktionen des JEM brauche ich nicht, aber dafür die benuterdefinierten Felder um so mehr. Die Ausgabe der benutzerdef. Felder brauche ich in der einfachen Liste zwecks Ausdruck.
Kann mir da jemand weiterhelfen.
Last edit: 7 years 5 months ago by Uwe.

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

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23906
Hi, the model is prepared. Make an override of common. Analyse how the default_events.php works with column, header amd table. Then you can add the custom fields, at least for events.

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

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23907
Vielen Dank für die Information.

Diesen Teil haben Sie gemeint?
Code:
<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; ?> <?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; ?> <?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>

In welcher Datei finde ich die Ausgabe der benutzerdefinierten Felder zum einfügen in diese Tabelle?

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

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23908
yes, there are 3 parts in the table
<colgroup>
<thead>
<tbody>
you need to add in each part something, you can try

For your columns you don't need the "if"s

the custom field names you can find in the query of models/eventslist.php

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

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23909
ist das so richtig?
Code:
<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; ?> <?php echo $query->select(array('l.custom1 AS l_custom1','l.custom2 AS l_custom2','l.custom3 AS l_custom3','l.custom4 AS l_custom4','l.custom5 AS l_custom5','l.custom6 AS l_custom6','l.custom7 AS l_custom7','l.custom8 AS l_custom8','l.custom9 AS l_custom9','l.custom10 AS l_custom10')); ?> <?php endif; ?> <?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><?php echo JHtml::_('l.custom1 AS l_custom1','l.custom2 AS l_custom2','l.custom3 AS l_custom3','l.custom4 AS l_custom4','l.custom5 AS l_custom5','l.custom6 AS l_custom6','l.custom7 AS l_custom7','l.custom8 AS l_custom8','l.custom9 AS l_custom9','l.custom10 AS l_custom10'); ?></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>

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

Re: [SOLVED] Benutzerdefinierte Felder in Simplelist

7 years 5 months ago
#23910
no!
sorry, but at the moment I don't have time to help more. Perhaps an other person.

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

Time to create page: 0.476 seconds