Hello, export button in page view even if activated it is not displayed on the page
Hi guy! Same problem here, but u can solve this issue by yourself. Go to Page Design, Select the page u want to make the export button, put a “Custom View Component” and use this code on it:
<div class="dropup export-btn-holder mx-1">
<button class="btn btn-outline-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">save</i> Exportar
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<?php $export_print_link = add_query_params(['export' => 'print']); ?>
<a class="dropdown-item export-link-btn" data-format="print" href="<?php print_link($export_print_link); ?>" target="_blank">
<img src="{{ asset('images/print.png') }}" class="mr-2" /> PRINT
</a>
<?php $export_pdf_link = add_query_params(['export' => 'pdf']); ?>
<a class="dropdown-item export-link-btn" data-format="pdf" href="<?php print_link($export_pdf_link); ?>" target="_blank">
<img src="{{ asset('images/pdf.png') }}" class="mr-2" /> PDF
</a>
<?php $export_csv_link = add_query_params(['export' => 'csv']); ?>
<a class="dropdown-item export-link-btn" data-format="csv" href="<?php print_link($export_csv_link); ?>" target="_blank">
<img src="{{ asset('/images/csv.png') }}" class="mr-2" /> CSV
</a>
<?php $export_excel_link = add_query_params(['export' => 'excel']); ?>
<a class="dropdown-item export-link-btn" data-format="excel" href="<?php print_link($export_excel_link); ?>" target="_blank">
<img src="{{ asset('images/xsl.png') }}" class="mr-2" /> EXCEL
</a>
</div>
</div>
Works perfectly for me!
1 Like