Skip to content

Wie prüft man den aktuellen CTYPE in einem eingebundenen Artikel? #3

Answered by olien
skerbis asked this question in Q&A
Discussion options

You must be logged in to vote

Erstelle eine Property in Deinem Einbindungsmodul

$project = rex_addon::get('project');
$project->setProperty('inctype',"REX_CTYPE_ID");
echo $article->getArticle(1);
$project->setProperty('inctype',0);

Die Property dann in den Modulen abfragen

$inctype = 0;
$project = rex_addon::get('project');
$inctype = $project->getProperty('inctype', "REX_CTYPE_ID"); 
if ($inctype ==2) { ...}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by skerbis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants