title: How can I show an element only if the page is not an article?
body: <p>I have a code snippet in an override off the mod_breadcrumbs/default.php, in order to NOT show the last li element of the Breadcrumb when the view is an article.</p>
  <p>The code is:</p>
  <pre><code>&lt;?php if( JRequest::getVar( 'view' ) != 'article' ): ?&gt;
          &lt;li itemprop=&quot;itemListElement&quot; itemscope itemtype=&quot;https://schema.org/ListItem&quot; class=&quot;breadcrumb-item active&quot;&gt;&lt;?php echo $breadcrumbItem; ?&gt;
              &lt;meta itemprop=&quot;position&quot; content=&quot;&lt;?php echo $key + 1; ?&gt;&quot;&gt;
          &lt;/li&gt;
          &lt;?php endif; ?&gt;
  </code></pre>
  <p>Now with Joomla 4 the JRequest is creating the  error:</p>
  <blockquote>
  <p>Class &quot;JRequest&quot; not found</p>
  </blockquote>
  <p>and we must use another code.
  Any help?
  Thanks</p>