I want to add a new position to Joomla 4 Casseopeia Template because I have filled bottom-a and bottom-b with two modules each and adding a third squeezes them too much horizontally.
So if I want to add bottom-c how do I go about it?
I tried duplicating the code in index.php to simply add another instance thus:
Then adding to templateDetails.xml
But when I assign the position bottom-c to my module it appears somewhere at the left between Banner and Top-A so I guess I did something wrong.
Is there a simple way to do what I want and add this position? I'm not great with digging into code, so explain in simple terms please! Image may be NSFW.
Clik here to view.
So if I want to add bottom-c how do I go about it?
I tried duplicating the code in index.php to simply add another instance thus:
Code:
<?php if ($this->countModules('bottom-a', true)) : ?> <div class="grid-child container-bottom-a"> <jdoc:include type="modules" name="bottom-a" style="card" /> </div> <?php endif; ?> <?php if ($this->countModules('bottom-b', true)) : ?> <div class="grid-child container-bottom-b"> <jdoc:include type="modules" name="bottom-b" style="card" /> </div> <?php endif; ?> #ADDED CODE <?php if ($this->countModules('bottom-c', true)) : ?> <div class="grid-child container-bottom-c"> <jdoc:include type="modules" name="bottom-c" style="card" /> </div> #ADDED CODE <?php endif; ?>
Code:
<position>bottom-a</position><position>bottom-b</position>#ADDED CODE<position>bottom-c</position>#ADDED CODE <position>footer</position><position>debug</position>
Is there a simple way to do what I want and add this position? I'm not great with digging into code, so explain in simple terms please! Image may be NSFW.
Clik here to view.

Statistics: Posted by DJBenz — Wed Jan 31, 2024 6:56 pm