Last active
March 31, 2017 20:59
-
-
Save cukabeka/1c407b6e9f4e5b8789d6 to your computer and use it in GitHub Desktop.
Redaxo Modul ACTION Sync Metadaten / Artikel
This file contains 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
<?php | |
$values = rex_request('VALUE'); | |
$REX_ACTION['VALUE'][13] = "|".implode ("|",$values[13])."|"; | |
$REX_ACTION['VALUE'][14] = "|".implode ("|",$values[14])."|"; | |
$sql = rex_sql::factory(); | |
$sql->setTable($REX['TABLE_PREFIX'].'article'); | |
$sql->setValue('art_tag', $REX_ACTION['VALUE'][13]); | |
$sql->setWhere('id = '.intval($REX['ARTICLE_ID'])); | |
$sql->update(); | |
$sql = rex_sql::factory(); | |
$sql->setTable($REX['TABLE_PREFIX'].'article'); | |
$sql->setValue('art_background_img', $REX_ACTION['VALUE'][14]); | |
$sql->setWhere('id = '.intval($REX['ARTICLE_ID'])); | |
$sql->update(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment