I've spent the past few days trying different variations of if statements to get this working but it's now driving me nuts.
What I'd like to do is show a series of divs on the first page of a custom component but not on any other pages 2, 3, etc.
I'm using Joomla 4 with the custom component.
This is my current code which is producing errors.
<?php if ($this->app->getInput()->getInt('start') < 1) : ?>
Hello World
<?php : ?>
edit More information
For instance, the following code is to display items from the database in the component.
<div class="everistBlock featured">
<?php $i = 0; foreach ($this->items as $i => $item) : if ($i == 15) {break;} ?>
<?php if ($item->articletype=="Featured Article") : ?>
<div class="featuredContainer">
<div class="newsItem">
<div class="newsItemImage">
<img src="<?php echo $item->articleimage; ?>" alt="<?php echo $item->title; ?>">
</div>
<div class="newsItemTitle">
<a href="<?php echo Route::_('index.php?option=com_everist&view=newsarticle&id='.(int) $item->id); ?>"><?php echo $this->escape($item->title); ?></a>
</div>
</div>
</div>
<?php endif ?>
<?php $i++; endforeach ?>
</div>
What I would like to do is have more like this but starting on page 2, or only visible on page 1.