Für einen schnellen Export all meiner Tabellen habe ich Code hinzugefügt, um einen „EXPORT“-Button zu implementieren. Bearbeitete Datei: /modern/admin/tmpl/droptables/default.phpdroptableszum Hinzufügen des „Alle exportieren“ fügen Sie diesen in die nächste offizielle Version ein. -Buttons: Export all Skript : // Funktion zum Exportieren aller Tabellen hinzufügen jQuery(document).ready(function ($) { $('#export_all').on('click', function(e) { e.preventDefault(); // Alle Tabellen-IDs aus der aktuellen Ansicht abrufen var tableIds = []; var base_export_url = "index.php?option=com_droptablesdroptablestask=excel.export&format_excel=xlsx&front=0&onlydata=1&id="; if (Droptables) { for (var catID in Droptables) { if (Droptables(catID)) { if (typeof Droptables[catID] !== 'undefined' && Droptables[catID].length > 0) { Droptables[catID].forEach(function(table) { tableIds.push(table.id); window.open(base_export_url + table.id, '_blank'); }); } } } console.log('Tabellen-IDs:', tableIds); } else { console.log('Keine Tabellen gefunden'); } return false;
- Seite :
- 1
Zu diesem Beitrag gibt es noch keine Antworten.
