Hey guys,

I'm using footermap on a page with the Marinelli Theme... So basically all my menus are in the main menu (it's a drop-down type thing called "Megamenu" in Marinelli...)

The module works like a charm, but because I have a lot of menu items in the main menu, the footermap is basically as long as the whole page...

Is there any way to force the footermap to make a 2nd column (like when you parse several menus) after, say "x" list items? And then a third and so on if the list gets longer...

I tried reading through the code already, but I really can't figure it out as I'm not really a big codemonkey...

A bit of help would be really appreciated! Thanks in advance!

With best regards
enderep12

Comments

mradcliffe’s picture

Does the new theme patch help theming in #637734: Footermap Theming: The Next Step?

enderep12’s picture

Hey,

thanks for the answer.

I tried applying the patch (wow, takes some time as a coding noob) and did it (probably) successfully in NetBeans...
Now the footermap is completely gone... It's activated in Modules though and I also put the block in the footer in the block menu...

If I put back the original files, everything works fine again...

Edit: Okay, I went to the .dev release and tried patching again... After the patch there's a new folder "/dev/" with a "null" file in it. Is this correct? Or am I failing at applying the patch?

When I upload the footermap now and reenable it in modules, it gives me the following error:

Warning: include_once(/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc): failed to open stream: No such file or directory in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).
Warning: include_once(): Failed opening '/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc' for inclusion (include_path='.:') in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).
Warning: include_once(/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc): failed to open stream: No such file or directory in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).
Warning: include_once(): Failed opening '/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc' for inclusion (include_path='.:') in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).
Warning: include_once(/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc): failed to open stream: No such file or directory in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).
Warning: include_once(): Failed opening '/var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/sites/all/modules/footermap/footermap.theme.inc' for inclusion (include_path='.:') in _theme_process_registry() (Zeile 413 von /var/www/vhosts/zaglov.de/subhosts/endi/buildupkids/includes/theme.inc).

Well, it says "failed opening": footermap.theme.inc
That might very well be, because the file is not even there.

enderep12’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev

Another edit:

I could read from the .patch file, that the stuff in the "null" file was the content of the 2 missing files.

I also was able to create them manually and now it works again. I might get into theming now.

enderep12’s picture

Status: Active » Closed (fixed)

Another update ;)

I resolved the problem.

How-To for anyone who wants to know:

Using footermap: 7.x-1.x-dev
Edited "div.footermap-col" in "footermap.css" to:

div.footermap-col { 
column-count: 6;
column-gap: 20px;
float: left;
height: 100px;
margin-bottom: 0px;
margin-left: -30px;
margin-right: 0px;
margin-top: 0px;
text-align: left;
 }

Result:
http://dl.dropbox.com/u/17080466/col-layout.jpg

Exactly what I wanted! I'm not even sure if you'd need the update for this... But it looks like I want it to and I'm not gonna roll back now ;)

So thanks for your help!

enderep12’s picture

Status: Closed (fixed) » Fixed
mradcliffe’s picture

I might put that in the README actually.

Thank you for giving it a shot.

enderep12’s picture

No problem, only thing is that only Opera, FF and Chrome can read this CSS tag.

IE (even the newest version) can not read the Column stuff... So it's going to be a normal textbox for IE users...

You might consider adding the -moz and -webkit tags beforehand, so that really every CSS3-compatible browser can use those tags.

Something along that lines:

div.footermap-col { 
-moz-column-count: 6;
-moz-column-gap: 20px;
-webkit-column-count: 6;
-webkit-column-gap:20px;
column-count: 6;
column-gap: 20px;
float: left;
height: 100px;
margin-bottom: 0px;
margin-left: -30px;
margin-right: 0px;
margin-top: 0px;
text-align: left;
 }

If you know any other solution to make it possible in Internet Explorer too, let me know.

See you.

mradcliffe’s picture

The other way would be to modify the render array and split things up in the template how you want them. This is more the coder's approach rather than the CSS themer's approach.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.