- Posts: 163
- Thank you received: 1
how to fill in content area when empty
-
maryswave
Inactive member -
Topic Author
- Member
-
Less
More
11 years 11 months ago #30667
by maryswave
how to fill in content area when empty was created by maryswave
I added a right module but when there is nothing to display in the content area I would like the background to be filled in with white but I can not figure out how to do that without also added white into other module that I don't want to show white.
see the picture
fwmdev.com/miss2/index.php/used-cars/ite...tegory/38-commercial
see the picture
fwmdev.com/miss2/index.php/used-cars/ite...tegory/38-commercial
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 11 months ago #30675
by ivan.milic
Replied by ivan.milic on topic how to fill in content area when empty
open index.php of template, find this code:
below } insert:
if($mpostion[0] == "<position name>") { $modules_in_row++; }
change <position name> with actual position name
Code:
foreach($gridRow[2] as $mpostion) {
$modules_in_row += $this->countModules($mpostion[0]); // number of active modules in the row
if($mpostion[0] == "logo") { $modules_in_row++; }
if($mpostion[0] == "joom_content") { $modules_in_row++; }
}
below } insert:
if($mpostion[0] == "<position name>") { $modules_in_row++; }
change <position name> with actual position name
Please Log in to join the conversation.
-
maryswave
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 163
- Thank you received: 1
11 years 11 months ago - 11 years 11 months ago #30733
by maryswave
Replied by maryswave on topic how to fill in content area when empty
The position is "content" if there is already "joom_content" is that the same thing?
adding this:
" if($mpostion[0] == "content") { $modules_in_row++; "
did not do anything
Also I don't understand how to use the equal heights in the back end as I do not see an example of it and the video is too blurry.
adding this:
" if($mpostion[0] == "content") { $modules_in_row++; "
did not do anything
Also I don't understand how to use the equal heights in the back end as I do not see an example of it and the video is too blurry.
Last edit: 11 years 11 months ago by maryswave.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 11 months ago #30741
by ivan.milic
Replied by ivan.milic on topic how to fill in content area when empty
There is no position named "content", for content position name is "joom_content". You could do this:
modify :
if($mpostion[0] == "joom_content") { $modules_in_row++; }
to:
if($mpostion[0] == "joom_content") { $modules_in_row++; $mpostion[0] .= " tcontent"; }
then add this script just above </head>
<script type="text/css">
jQuery(document).ready(function(){
if(!jQuery.trim(jQuery('.tcontent').text()))
jQuery('.tcontent').css('background','transparent');
});
</script>
modify :
if($mpostion[0] == "joom_content") { $modules_in_row++; }
to:
if($mpostion[0] == "joom_content") { $modules_in_row++; $mpostion[0] .= " tcontent"; }
then add this script just above </head>
<script type="text/css">
jQuery(document).ready(function(){
if(!jQuery.trim(jQuery('.tcontent').text()))
jQuery('.tcontent').css('background','transparent');
});
</script>
Please Log in to join the conversation.
Time to create page: 0.175 seconds