Skip to content

Instantly share code, notes, and snippets.

@elricco
Last active July 30, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elricco/02f3519ad10ca3162202 to your computer and use it in GitHub Desktop.
Save elricco/02f3519ad10ca3162202 to your computer and use it in GitHub Desktop.
REXNames zum erweitern der VALUES von REDAXO // REXNames to enhance the VALUES of REDAXO // REDAXO 4.6.1
//Im zu verwenden Modul dann folgenden Code in die Eingabe UND die Ausgabe ganz oben integrieren:
//Put this code on top of the used module - INPUT and OUTPUT
<?php
// REXNames zur Erweiterung der Values - REX_VALUE[20] blockiert
// REXNames to enhance the Values - REX_VALUE[20] blocked
$rexname = unserialize (urldecode ("REX_VALUE[20]"));
?>
// Seit REDAXO 4.6.1 diesen Code als Presave-Action ADD+EDIT anlegen
// Since REDAXO 4.6.1 use this code for Presave-Action ADD+EDIT
<?php
// wirkt bei "Block speichern" und "Block übernehmen", bevor in die DB gespeichert wird.
// rexname serialisieren und in REX_VALUE[20] schreiben:
// called at "update slice" and "save slice" before stored in DB
// serealize rexname an store in REX_VALUE[20]:
$REX_ACTION['VALUE'][20] = urlencode (serialize (rex_request ("rexname", "array")));
?>
// Seit REDAXO 4.6.1 diesen Code als Preview-Action ADD+EDIT anlegen
// Since REDAXO 4.6.1 use this code for Preview-Action ADD+EDIT
<?php
// wirkt bei "Block übernehmen", bevor das Slice wieder angezeigt wird.
// called when "update slice" is clicked, before the slice is shown again
$REX_ACTION['VALUE'][20] = $rexname;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment