Plugin "hiddenfield"

More
3 years 4 months ago - 3 years 4 months ago #5851 by Mauriciofrog
Plugin "hiddenfield" was created by Mauriciofrog
Hallo, Guten Tag

Ich teste dieses wundervolle Werkzeug und bin mit seiner Leistung zufrieden. Nur wenn ich das Plugin "hiddenfield" von Version 3.9.7 benutze, stelle ich fest, dass der Wert des versteckten Feldes leer ist.

es funktioniert, aber in einem Testfeld in Form-Template wird Folgendes zurückgegeben:
<input type = "hidden" name = "saison" value = "" />

Dies führt dazu, dass beim Speichern in der Datenbank die Werte dieser Felder verloren gehen.
Last edit: 3 years 4 months ago by Mauriciofrog.

Please Log in to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #5852 by Dirk
Replied by Dirk on topic Plugin "hiddenfield"
Bitte mal im Plugin /components/com_joodb/plugins/hiddenfield.php $item in $this->item ändern!
Dann sollte es funktionieren!
<?php
// no direct access

/**
 * Get field as hidden form field in form view
 * Example {joodb hiddenfield|category}
 */

defined('_JEXEC') or die('Restricted access');
if (count($part->parameter)>=1) {
    $field = $part->parameter[0];
    $output .= '<input type="hidden" name="'.$field.'" value="'.htmlspecialchars(stripcslashes($this->item->{$field}), ENT_COMPAT, 'UTF-8').'" />';
}

Attachment hiddenfield.php.zip not found

This message has an attachment file.
Please log in or register to see it.

Last edit: 3 years 4 months ago by Dirk.
The following user(s) said Thank You: Mauriciofrog

Please Log in to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #5855 by Mauriciofrog
Replied by Mauriciofrog on topic Plugin "hiddenfield"
Vielen Dank für Ihre schnelle und zufriedenstellende Antwort.

Das Tool funktioniert gut mit der vorgeschlagenen Änderung.
Last edit: 3 years 4 months ago by Mauriciofrog.

Please Log in to join the conversation.

Moderators: Dirkjoest