I want to use 1 module position (showcase) but have duplicate modules set the bootstrap column width based on the amount of modules assigned to that position.
I have written the following code:
<div class="row">
<?php if($this->countModules('showcase')) : ?>
<div class="col-md-<?php echo (12/$this->countModules('showcase'));?>">
<jdoc:include type="modules" name="showcase" />
</div>
<?php endif; ?>
</div>
but this is outputting the following html:
<div class="row">
<div class="col-md-6">
<div class="block">
<h2 class="header">Show Case 1</h1>
<div class="custom">
<p>This is a test</p>
</div>
</div>
<div class="custom">
<h2 class="header">Show Case 2</h1>
<p>This is a test</p>
</div>
</div>
</div>
rather than (how I want it to look):
<div class="row">
<div class="col-md-6">
<div class="block">
<h2 class="header">Show Case 1</h1>
<div class="custom">
<p>This is a test</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="block">
<h2 class="header">Show Case 2</h1>
<div class="custom">
<p>This is a test</p>
</div>
</div>
</div>
</div>