Last active
July 30, 2020 14:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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]")); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"))); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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