rw1
Moderator
Hello,
I tried changing the position of the button for csv export on the front end list (default template) to below the table on the right and it looked pretty good I think, but the table headings disappeared, so obviously i wasn't doing it right. But these are the files i hacked:
To Move CSV Export Button, in:
Find:
move to just before:
To Add Text To The Export Button, in:
Find:
Replace With:
To Move The Button To The Right Hand Side, in:
Find:
Replace With:
To Remove Link Underline:
I then replaced the above with:
I tried changing the position of the button for csv export on the front end list (default template) to below the table on the right and it looked pretty good I think, but the table headings disappeared, so obviously i wasn't doing it right. But these are the files i hacked:
To Move CSV Export Button, in:
Code:
/public_html/components/com_fabrik/views/list/tmpl/default/default.php
Code:
<?php echo $this->loadTemplate('buttons');
if ($this->showFilters) {
echo $this->loadTemplate('filter');
}
//for some really ODD reason loading the headings template inside the group
//template causes an error as $this->_path['template'] doesnt cotain the correct
// path to this template - go figure!
$this->headingstmpl = $this->loadTemplate('headings');
?>
Code:
<?php print_r($this->hiddenFields);?>
Code:
/public_html/components/com_fabrik/views/list/tmpl/default/default_buttons.php
Code:
<a href="#">
<?php echo $this->buttons->csvexport;?>
<span><?php echo JText::_('COM_FABRIK_EXPORT_TO_CSV');?></span>
</a>
Code:
<a href="#">
<?php echo $this->buttons->csvexport;?>
Export Records To CSV
</a>
Code:
/public_html/components/com_fabrik/views/list/tmpl/default/template_css.php
Code:
#listform_$c .fabrik_buttons{
/* remove this if you want the top menu bar to be on the right hand side*/
float:left !important;
}
Code:
#listform_$c .fabrik_buttons{
/* remove this if you want the top menu bar to be on the right hand side*/
/*float:left !important;*/
}
I then replaced the above with:
Code:
#listform_$c .fabrik_buttons a {
/* remove this if you want the top menu bar to be on the right hand side*/
/*float:left !important;*/
text-decoration: none;
}