test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • coder4life Friend
    #155127

    Well I understand how blocks work, in ways I find it limiting and at the same time powerful. Limiting meaning blocks are not uniform, blocks in top, middle, and bottom do not behave the same.

    To explain myself, a block in my mind is a container with specific set of rules of display attached that have been predefined in the T3 II Plugin. We have the ability to override rules of display for our own uses.

    What I do understand

    For positioning, a framework is a handy tool to get the layout correct for each user. Being able to template blocks creates the freedom for repetition of display, like rows and columns. Instead of limiting a person to manually creating the styling conditions and layouts for different or similar circumstances, it makes sense to create predefined rules of display most users can utilize.

    What I do not understand

    Does Joomla not already follow a container pattern in this sense already through its <jdoc:include type=”modules” name=”” /> and <jdoc:include type=”components” name=”” />. Couldn’t I just add a few css lines of a classes to get the same layout structure.

    What I find limiting, I cannot put “header” and “mainnav” blocks together because of the predefined properties without overrides. But then I came to the conclusion that what was the point when I could create a new block and place the modules next to each other inside the content block. What then confused me even more is why do we do this in the middle block by allowing left and right columns?

    korb Friend
    #358318

    You can merge header & mainnav into a single block, but what is the point in that?

    xiondesigns Friend
    #358461

    <em>@korb 197684 wrote:</em><blockquote>You can merge header & mainnav into a single block, but what is the point in that?</blockquote>

    For example, if you want to create the menu in the same line as the logo, floatting right.

    How would we do that? (with megamenu)

    korb Friend
    #358476

    You can this:
    – create a layout to exclude the header,
    – create a block override for mainnav.php
    – copy the logo code into the mainnav.php
    – make style adjustments

    You can do all that into your own theme, without altering the core code of the template.
    Danny

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  korb 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum