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

    Hi.
    I have modified the layout for handheld to be like this, which displays the left modules under the main content.
    I couldn’t really work out how to do this by “stacking” <blocks> together, so I put the left module in the footer section which seems to make it wide enough.
    I’m guessing there is a better way to do this.

    <blocks name=”top” style=”xhtml”>
    <block name=”mainnav” type=”handheld/mainnav”></block>
    <!– <block name=”header” type=”handheld/header”></block> –>
    </blocks>
    <blocks name=”middle”></blocks>

    <blocks name=”bottom” style=”xhtml”>
    <block name=”left1″ style=”xhtml”>left</block>
    <block name=”footer” type=”handheld/footer”></block>
    </blocks>

    >

    himangi Friend
    #429271

    Hi

    What I understood is you need to show the modules in the full available width, which is same as the width allocated for the main content. Try using following layout code.. And publish modules in position content-mass-bottom

    <blocks name="top" style="xhtml">
    <block name="mainnav" type="handheld/mainnav"></block>
    <!-- <block name="header" type="handheld/header"></block> -->
    </blocks>
    <blocks name="middle">
    <block name="content-mass-bottom">content-mass-bottom</block>
    </blocks>

    <blocks name="bottom" style="xhtml">
    <block name="footer" type="handheld/footer"></block>
    </blocks>

    timrichardson Friend
    #429408

    I don’t want to create a new module position because I don’t want to affect the normal (desktop) view of the site. I just want to have a module position called “left” shown as a column in one layout, but full width in another layout, converting a two column layout to a one column layout for people viewing the site in handheld devices.

    himangi Friend
    #429424

    Hi,

    you can simply try using following code for handheld layout. In this case you will be using position named left but the place and available width for the position will be different that of the usual left column.

    <blockquote><blocks name=”top” style=”xhtml”>
    <block name=”mainnav” type=”handheld/mainnav”></block>
    <!– <block name=”header” type=”handheld/header”></block> –>
    </blocks>
    <blocks name=”middle”>
    <block name=”content-mass-bottom”>left</block>
    </blocks>

    <blocks name=”bottom” style=”xhtml”>
    <block name=”footer” type=”handheld/footer”></block>
    </blocks></blockquote>

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

This topic contains 4 replies, has 2 voices, and was last updated by  himangi 12 years, 11 months ago.

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