joomla:jinput
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| joomla:jinput [15/02/2021 16:22] – Externe Bearbeitung 127.0.0.1 | joomla:jinput [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Joomla - Modalbox ====== | ||
| - | |||
| - | Wie stelle ich es an, dass gewisse Inhalte einer Komponente in einer Modalbox angezeigt werden? | ||
| - | |||
| - | ===== Inhalt der Modalbox ===== | ||
| - | |||
| - | Der Inhalt der Modalbox kann zum Beispiel mit einer eigenen Komponenten-View gefüllt werden.\\ | ||
| - | Dazu werden folgende Dateien benötigt: | ||
| - | |||
| - | views/ | ||
| - | views/ | ||
| - | |||
| - | <file php view.raw.php> | ||
| - | <?php | ||
| - | |||
| - | // No direct access | ||
| - | defined(' | ||
| - | |||
| - | use \Joomla\CMS\Factory; | ||
| - | |||
| - | /** | ||
| - | * View class for modals | ||
| - | */ | ||
| - | |||
| - | class ComponentViewTestview extends \Joomla\CMS\MVC\View\HtmlView | ||
| - | { | ||
| - | |||
| - | /** | ||
| - | * Display the view | ||
| - | * | ||
| - | * @param | ||
| - | * @return void | ||
| - | * @throws Exception | ||
| - | */ | ||
| - | public function display($tpl = null) | ||
| - | { | ||
| - | $app = Factory:: | ||
| - | |||
| - | | ||
| - | | ||
| - | |||
| - | |||
| - | // Check for errors. | ||
| - | if (count($errors = $this-> | ||
| - | { | ||
| - | throw new Exception(implode(" | ||
| - | } | ||
| - | |||
| - | | ||
| - | | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | <file php modalbox.php> | ||
| - | <?php | ||
| - | // No direct access | ||
| - | defined(' | ||
| - | |||
| - | //URL: index.php? | ||
| - | ?> | ||
| - | |||
| - | < | ||
| - | </ | ||
| - | \\ | ||
| - | \\ | ||
| - | |||
| - | ===== Aufrufen der Modalbox ===== | ||
| - | |||
| - | ==== Mootols: Modalbox ==== | ||
| - | |||
| - | <file php default.php> | ||
| - | <?php | ||
| - | |||
| - | use \Joomla\CMS\HTML\HTMLHelper; | ||
| - | use \Joomla\CMS\Router\Route; | ||
| - | |||
| - | HTMLHelper:: | ||
| - | |||
| - | . | ||
| - | . | ||
| - | . | ||
| - | |||
| - | <a id =" | ||
| - | </ | ||
| - | |||
| - | ==== Bootstrap: Modalbox ==== | ||
| - | https:// | ||
| - | |||
| - | <file php default.php> | ||
| - | <?php | ||
| - | |||
| - | use \Joomla\CMS\Router\Route; | ||
| - | |||
| - | . | ||
| - | . | ||
| - | . | ||
| - | |||
| - | <button type=" | ||
| - | Bootstrap: Modalbox | ||
| - | </ | ||
| - | |||
| - | <!-- Modal-Box --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <button type=" | ||
| - | <span aria-hidden=" | ||
| - | </ | ||
| - | <h3 id=" | ||
| - | </ | ||
| - | <div class=" | ||
| - | <iframe class=" | ||
| - | </ | ||
| - | <div class=" | ||
| - | <button type=" | ||
| - | <button type=" | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | </ | ||
| - | |||
joomla/jinput.1613402526.txt.gz · Zuletzt geändert: 15/02/2021 16:22 von 127.0.0.1