I stumbled upon this closed Issue: #7594
when setting up a module article category the dynamic way, when empty it still occupies the module position.
Could this be solved by something as simple as:
If <jdoc:include type="modules" name="left" bladibla> is not empty then continue what you wanna do...
I don't know if something like that would be possible. If so, it would be possible to include or exclude some like that in your template.. just like the countmodules..
Labels |
Added:
?
|
This is an alternative to trying the "fix" countModules() which requires a B/C break
The alternative is not difficult to implement, and can be very performance wise too, it would look like:
<jdoc:addclass type="modules" name="position-7" yclass="p7" nclass="np7" />
<jdoc:addclass type="modules" name="position-8" yclass="p8" nclass="np8" />
e.g.
<div id="sidebar" class="
<jdoc:addclass type="modules" name="position-7" yclass="span3" nclass=""/>
">
...
<main id="content" role="main" class="
<jdoc:addclass type="modules" name="position-7" yclass="p7" nclass="np7"/>
<jdoc:addclass type="modules" name="position-7" yclass="p8" nclass="np8"/>
">
If the position has non empty modules,
Of course i do not mean strip tags like <p></p> that is totaly the responsibility of the module !
Category | ⇒ | Modules |
I am closing this at this time as all attempts at "fixing" this have failed and we cant introduce a b/c change for this
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-09 12:41:34 |
Closed_By | ⇒ | brianteeman |
There have been many attempts to do this - all have failed
But yes we should have a way of dealing with it
On 21 July 2016 at 12:02, pieter-groeneweg notifications@github.com wrote:
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/