0
menidsに一度にリンクされている 'article'、 'Id'の出力がdiv id = articleID内にそれぞれ1ページずつ必要です。出力はモジュールとハンドル可能性があり、私は以下の2.5joomlaの 'article'、 'Id' module 2.5
menidsに一度にリンクされている 'article'、 'Id'の出力がdiv id = articleID内にそれぞれ1ページずつ必要です。出力はモジュールとハンドル可能性があり、私は以下の2.5joomlaの 'article'、 'Id' module 2.5
コードが何をすべきjoomlaの中で、このモジュールをインストールして更新できます
// init
$searchBase = 'index.php?option=com_content&view=article&id=';
$articles = array();
// get all menu items and find links to articles
$menu = JFactory::getApplication()->getMenu()->getItems('type', 'component');
foreach ($items as $item) {
$id = str_replace($searchBase, '', $item->link, $count);
if ($count){
$articles[] = (int) $id;
}
}
// build query for articles info
$csvIds = implode(',', $articles);
$sql = "select id, title from #__content WHERE published=1 AND id IN ($csvIds)";
// TODO: query and process