By Lisa Renshaw on Sunday, 29 January 2017
Posted in Technical Issues
Likes 0
Views 181
Votes 0
I just performed an update for EasyBlog and after it was finished the sidecolumn disappeared. I checked that the modules were published and they were. I tested to see whether it was my template or easyblog and it's definitely something with easyBlog. When I published the modules to another menu item with the same position the modules DID appear. But if I publish them to EasyBlog page - http://www.anamarinc.com/blog - they do NOT appear. What am I doing wrong? What is going on?
Hello Lisa,

I am really sorry for the delay of this reply as it is a weekend for us here. I did a comparison between the page at http://www.anamarinc.com/projects and http://www.anamarinc.com/blog .

It seems like the "projects" menu is wrapped around a container that has "content80" while the "News" page is wrapped around the container that has the class content100

Projects Menu - http://take.ms/uk91s
News Menu - http://take.ms/jmF1X

The wrapper for the News menu needs to be content60 otherwise your template is enforcing the width of the component area to be at 100% and pushing the modules down at the bottom. Take a look at my screen shot here when content60 is applied, http://take.ms/qoW1I

I tried looking at the template but I have no idea where this is being defined. Do you have an idea of this?
·
Sunday, 29 January 2017 15:36
·
0 Likes
·
0 Votes
·
0 Comments
·
That is really odd. Both pages are using the same template.

BEFORE I updated EasyBlog the right hand column was there. AFTER it was updated, the right column had disappeared. Despite all my efforts to place modules on the News page, it is not working.

There are 3 modules assigned to the "right" position of my template.

The width is defined in the index.php file of the template. I'm attaching a screenshot. There is nothing I've changed with the template.
·
Monday, 30 January 2017 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lisa,

Your calculation is incorrect because countModules will return you the total number of modules and since it has more than 1 module, it fails in your "IF" statement.

I have modified the template codes for you so that it now looks like this,

[gist]
<?php
if($this->countModules('left and right') == 0) $contentwidth = "100";
if($this->countModules('left') >= 1) $contentwidth = "80";
if($this->countModules('right') >= 1) $contentwidth = "60";
if($this->countModules('left and right') >= 1) $contentwidth = "40";
?>
[/gist]
·
Monday, 30 January 2017 14:23
·
0 Likes
·
0 Votes
·
0 Comments
·
ok. Thanks. It's just weird to me that it's always worked (even before the update) and all of a sudden it didn't. Believe me ... if it wasn't working before, I would have heard about it from my client..
·
Monday, 30 January 2017 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
There is no reason that it stopped working. I am guessing that probably previously there is only 1 module that appears hence that IF statement always works.

Anyway the block of codes you had previously is incorrect and this new one should work
·
Monday, 30 January 2017 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much for your help... especially on the weekend!!
·
Monday, 30 January 2017 15:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Monday, 30 January 2017 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post