Wie geht das jetzt?
Code: Alles auswählen
<?php
$article = new rex_article('REX_LINK_ID[1]', $REX['CUR_CLANG']);
echo $article->getArticle(1);
?>
Code: Alles auswählen
<?php
$article = new rex_article('REX_LINK_ID[1]', $REX['CUR_CLANG']);
echo $article->getArticle(1);
?>
Code: Alles auswählen
<?php
$embed_article = new rex_article_content('REX_LINK[id=1]',rex_clang::getCurrentId());
if("REX_ARTICLE_ID" != "REX_LINK[id=1]" AND "REX_LINK[id=1]" != "")
{
echo $embed_article->getArticle(1);
}
else
{
echo "******Bitte Artikellink prüfen***********";
}
?>
Code: Alles auswählen
<?php
$embed_article = new rex_article_content('REX_LINK[id=1]',rex_clang::getCurrentId());
$article_title = $embed_article->getValue('art_title');
if(rex::isBackend()) {
print 'Artikel einbinden: '.$article_title.'';
} else {
if("REX_ARTICLE_ID" != "REX_LINK[id=1]" AND "REX_LINK[id=1]" != "")
{
echo $embed_article->getArticle(1);
}
else
{
echo "******Bitte Artikellink prüfen***********";
}
}
?>
Code: Alles auswählen
$article_title = $embed_article->getValue('art_title');
Code: Alles auswählen
$article_title = $embed_article->getName();
Code: Alles auswählen
$article = rex_article::get('REX_LINK[id=1]');
$articleContent = new rex_article_content($article->getId(), $article->getClang());
echo $article->getName();
Code: Alles auswählen
<?php
$article = rex_article::get('REX_LINK[id=1]');
$articleContent = new rex_article_content($article->getId(), $article->getClang());
if(rex::isBackend()) {
echo $article->getName();
} else {
if("REX_ARTICLE_ID" != "REX_LINK[id=1]" AND "REX_LINK[id=1]" != "")
{
echo $articleContent->getArticle(1);
}
else
{
echo "******Bitte Artikellink prüfen***********";
}
}
?>