1. Oliver
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Thursday, 09 March 2023
  5.  Subscribe via email
Hello Ciaran,

I have in mind that the module areas of your templates are collapsible in case there is no content in it.
So when in top-1a to top-1f only top-1a is shown - as long only this postion contains a module.

But the maincontent area isn't collapsible, right?
If I am not using an article on a webseite only modules, there is a more or less larger gap between modules on upper maintcontent position and lower maincontent position because maincontent always has some padding.

I added an url to an example page, where this is obvious.
It's the gap between the upper read more button ("Weiterlesen" in German) and the word "Bürgerengagement".

Can it be an idea to change this in upgrades of the newer templates? For example to check if there is an article in use or not and disabling .maincontent class?

Regards
Oliver
References
  1. https://j4.lag-mangfalltal-inntal.de/projekte/projekte-2014-2022/buergerengagement.html
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Oliver

It is somewhat tricky as Joomla is very much based on each menu item being based on a component. A workaround however would be to create a template style assigned tp menu items in which you wish to hide the component area and add the following CSS to the Custom CSS field..

.maincontent {
display: none;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciaran,
thanks for the answer.
This would be a great idea if I do not want to use the component area on the whole website but thats not my intention ;)

I only wanted to point at this class .maincontent.
My idea was: if you would check in the templates if the component area is not used, than do not write this class.

But it is not so important that I would say its an issue or bug. It was only an idea :D

I normally do not work like this and have an empty component area, but sometimes it is a possible constellation.

Have a nice weekend Ciaran

Regards
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Oliver

Although not very dynamic, you would create a template style with the suggested CSS and then apply that style to just the menu items which you wish to hide the component area.

Admittedly not the most perfect solution but is a somewhat work intensive workaround if needed :)

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Yes, that might work,

Thank you Ciaran :)
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok