help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
J3+Styling - Backend - Attendees view
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago - 9 years 3 weeks ago
Descripion part above the filter
That will involve a bit more work to be done.
Was thinking: maybe it would be good to relocate the buttons for export/print to the toolbar so maybe I'l tell a bit about that at a later time. The eventid needed is stored in a input field so maybe we can catch that in a function, we can add custom task to the view.html.php so would say it should be possible.
Doing so you will have more room to display information about the event and other details what you want to be displayed.
That will involve a bit more work to be done.
Was thinking: maybe it would be good to relocate the buttons for export/print to the toolbar so maybe I'l tell a bit about that at a later time. The eventid needed is stored in a input field so maybe we can catch that in a function, we can add custom task to the view.html.php so would say it should be possible.
Doing so you will have more room to display information about the event and other details what you want to be displayed.
Last edit: 9 years 3 weeks ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago - 9 years 3 weeks ago
Print button to Toolbar
It's possible to move the print-link to the toolbar so let's try it.
File .../administrator/components/com_jem/views/attendees/view.html.php
Find: function "protected function addtoolbar"
Add
Doing so we added the toolbar button but then we have to address the tmpl file.
File: .../administrator/components/com_jem/views/attendees/tmpl/default.php
Remove
In the attached image you can see what the result will be.
(The export+mail buttons are there to but that will be for later)
//
For some kind of reason the JToolBarHelper::divider(); doesn't seem to be working but that's for later
It's possible to move the print-link to the toolbar so let's try it.
File .../administrator/components/com_jem/views/attendees/view.html.php
Find: function "protected function addtoolbar"
Add
Code:
$eventid = $this->event->id;
$link_print = 'index.php?option=com_jem&view=attendees&layout=print&tmpl=component&id='.$eventid;
$bar = JToolBar::getInstance('toolbar');
$bar->appendButton('Popup', 'print', 'COM_JEM_PRINT', $link_print, 600, 300);
Doing so we added the toolbar button but then we have to address the tmpl file.
File: .../administrator/components/com_jem/views/attendees/tmpl/default.php
Remove
Code:
<div class="button2-left"><div class="blank"><a title="<?php echo JText::_('COM_JEM_PRINT'); ?>" onclick="window.open('index.php?option=com_jem&view=attendees&layout=print&tmpl=component&id=<?php echo $this->event->id; ?>', 'popup', 'width=750,height=400,scrollbars=yes,toolbar=no,status=no,resizable=yes,menubar=no,location=no,directories=no,top=10,left=10')"><?php echo JText::_('COM_JEM_PRINT'); ?></a></div></div>
In the attached image you can see what the result will be.
(The export+mail buttons are there to but that will be for later)
//
For some kind of reason the JToolBarHelper::divider(); doesn't seem to be working but that's for later
Last edit: 9 years 3 weeks ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago
do you mean protected function addToolbar()
?
?
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago
Description part above table
When the buttons for print+export have been relocated there will be some room to display things relevant for the current event.
At the moment it's displaying date + Event-Title but maybe a quick summary of Total attendees would be nice to have. Think you will be able to add/change this part yourself so won't describe it.
When the buttons for print+export have been relocated there will be some room to display things relevant for the current event.
At the moment it's displaying date + Event-Title but maybe a quick summary of Total attendees would be nice to have. Think you will be able to add/change this part yourself so won't describe it.
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks agojojo12 wrote: do you mean protected function addToolbar()
?
yes i meant that one (thx for the note)
The following user(s) said Thank You: jojo12
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago
Export to Toolbar
File: ..../administrator/components/com_jem/views/attendees/view.html.php
Find: function "protected function addToolbar()"
Add
"download" will create an icon-download class but if you want you can also change it to export so it will create an icon-export. In that case you need to modify the css a bit to display a CSV/XLS icon or something like that.
File: ..../administrator/components/com_jem/views/attendees/tmpl/default.php
Remove this code
File: ..../administrator/components/com_jem/views/attendees/view.html.php
Find: function "protected function addToolbar()"
Add
Code:
JToolBarHelper::custom('attendees.export', 'download', 'download', JText::_('COM_JEM_EXPORT'), false);
File: ..../administrator/components/com_jem/views/attendees/tmpl/default.php
Remove this code
Code:
<td width="20%">
<div class="button2-left"><div class="blank"><a title="<?php echo JText::_('COM_JEM_CSV_EXPORT'); ?>" onclick="window.open('index.php?option=com_jem&task=attendees.export&tmpl=raw&id=<?php echo $this->event->id; ?>')"><?php echo JText::_('COM_JEM_CSV_EXPORT'); ?></a></div></div>
</td>
Please Log in or Create an account to join the conversation.
Time to create page: 0.577 seconds