1

Just to clarify, inside the article view, you can get the ID of the article: $app = Factory::getApplication(); if ( $app->input->get('option') === 'com_content' && $app->input->get('view') === 'article' ) { // Get the article ID $article_id = $app->input->getInt('id'); } If you use the previous code inside a blog ...


Only top voted, non community-wiki answers of a minimum length are eligible