Quantcast
Viewing all articles
Browse latest Browse all 2357

Templates for Joomla! 4.x • Adding a new template position to Casseopeia

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:

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; ?>    
Then adding to templateDetails.xml

Code:

<position>bottom-a</position><position>bottom-b</position>#ADDED CODE<position>bottom-c</position>#ADDED CODE        <position>footer</position><position>debug</position>
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.
:laugh:

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



Viewing all articles
Browse latest Browse all 2357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>