Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please have a look at the forum for questions and help with this code.

cApiArticleLanguage::getContentObject

This function will return an object of the specified content type. You can use this object to get more information about the content.

Code Block
languagephp
titleExample
linenumberstrue
$artLang = new cApiArticleLanguage(1);
$cmsLinkEditor = $artLang->getContentObject("CMS_LINKEDITOR", 1);
echo($cmsLinkEditor->getTarget()); // will echo the link target (e.g. "_blank")

Don't forget to take a look at the complete API documentation over here.