New Module Positions Stuck In Full Width

Support desk for Multipurpose Quark Theme
GK User
Sun Jul 05, 2015 11:05 am
Hi,

I have created new module positions following the instructions in your documentation page. I made the edits in the files “templateDetails.xml file” and the “default.php” (the "gk.const.php" file did not exist). It all works great except the width of the new module positions are only shown in full width. Even without any class suffix in the module advanced settings they still stay in full width, instead of kept inside the container. How can I solve this?
User avatar
Senior Boarder

GK User
Sun Jul 05, 2015 1:25 pm
I just noticed it only happens when you create a module position from "bottom11" and higher.
User avatar
Senior Boarder

teitbite
Mon Jul 06, 2015 10:53 am
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

GK User
Mon Jul 06, 2015 11:59 am
Hi Teitbite, I just sent you a PM.
User avatar
Senior Boarder

teitbite
Wed Jul 08, 2015 7:12 pm
Hi

There is one small code if You need to add module position like that. In /html/modules.php I've added to condition:

Code: Select all
            $attribs['name'] == 'top1' ||
            $attribs['name'] == 'top2' ||
            $attribs['name'] == 'bottom1' ||
            $attribs['name'] == 'bottom2' ||
            $attribs['name'] == 'bottom3' ||
            $attribs['name'] == 'bottom4' ||
            $attribs['name'] == 'bottom5' ||
            $attribs['name'] == 'bottom6' ||
            $attribs['name'] == 'bottom7' ||
            $attribs['name'] == 'bottom8' ||
            $attribs['name'] == 'bottom9' ||
            $attribs['name'] == 'bottom10'


one more position:

Code: Select all
            $attribs['name'] == 'top1' ||
            $attribs['name'] == 'top2' ||
            $attribs['name'] == 'bottom1' ||
            $attribs['name'] == 'bottom2' ||
            $attribs['name'] == 'bottom3' ||
            $attribs['name'] == 'bottom4' ||
            $attribs['name'] == 'bottom5' ||
            $attribs['name'] == 'bottom6' ||
            $attribs['name'] == 'bottom7' ||
            $attribs['name'] == 'bottom8' ||
            $attribs['name'] == 'bottom9' ||
            $attribs['name'] == 'bottom10' ||
            $attribs['name'] == 'bottom11'   
User avatar
Moderator

GK User
Wed Jul 08, 2015 11:15 pm
Thanks Teitbite, it works perfect.

You mentioned “module positions like that”. What kind of module positions can I add without having to go through the above mentioned process?
User avatar
Senior Boarder

teitbite
Sat Jul 11, 2015 9:24 pm
Hi

I meant that if You are adding a new module position line bottom11, bottom12 You need to do all the things mentioned in documentation, but in this template since module positions are special and can get a different layout thanks to the module class suffixes, a support for this suffixes has to be added in /html/modules.php file exactly as mentioned in my last post.
User avatar
Moderator

GK User
Sun Jul 12, 2015 9:49 am
Oh ok, now I understand. Thanks!
User avatar
Senior Boarder

teitbite
Tue Jul 14, 2015 3:03 pm
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron