Contents
- Introduction Introduction
- getArticleCardLayout Retrieve the card layout for articles
- updateArticleCardLayout Update the card layout for articles
Introduction
Card layouts represent the available fields for articles, relations and employees, and their configuration and visual representation.
getArticleCardLayout Retrieve the card layout for articles
updateArticleCardLayout Update the card layout for articles
array( 'cardLayoutField' => array( array( 'cardLayoutFieldId' => xxx, // insert intended cardLayoutFieldId 'infoPopup' => true, // use this field in the information pop-up ), ), ), ); // Then we call the updateArticleCardLayout() function wrapped in a try/catch block to intercept any exceptions. try { if (false !== $mplusqapiclient->updateArticleCardLayout($article_card_layout)) { exit('Updated article card layout.'); } else { exit('Unable to update article card layout.'); } } catch (MplusQAPIException $e) { exit($e->getMessage()); }