What's this "$c->getContainerClass()" thing in 5.7?

Permalink
Hi,
This page in the docs:http://www.concrete5.org/documentation/developers/5.7/background/mi... ... says "a new method is required around your theme page templates' container DIVs":
<div class="<?=$c->getContainerClass()?>">


But I don't see that in the elemental theme anywhere (nor could I even find that function defined anywhere in the C5 codebase). I'm guessing this is just an out-of-date docs page? Or maybe not?

What I do see in the elemental theme is:
<div class="<?php echo $c->getPageWrapperClass(); ?>">

which outputs page-theme-handle and page-type-handle classes... so that could be useful. But doesn't seem like it should be considered "required" if your theme css doesn't take advantage of those classes, right? Or is there some editing interface functionality that relies on that?

Thanks,
Jordan

jordanlev
 
mesuva replied on at Permalink Best Answer Reply
mesuva
I've never seen or used getContainerClass in any 5.7 theme, and I'm doing all sorts of things with custom grids and container wrappers to take advantage of the new _area_ design features, so I think you are right in that it's an outdated snippet of information.

That doco page was one of the first put up about 5.7 I think.

The getPageWrapperClass() function on the other hand is a must use function, not only is it useful for outputting the page type and template classes, but it outputs the class required to make the page behave correctly with the slide in panels.

I guess you _could_ hardcode the 'ccm-page' class it outputs instead of using the function, but if down the track concrete5 changes the way it handles things a bit and needs to output other classes on the wrapping div, you'll have that already set up if you use it.