0
Welcome Guest! Login
0 items Join Now

ADVICE REQUESTED: NEW LAYOUT

    • CHRISY's Avatar
    • CHRISY
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    ADVICE REQUESTED: NEW LAYOUT

    Posted 13 years 6 months ago
    • Hi,

      I'm building a custom site and have need to add an additional row of module positions in body_mainbody.php.

      I've added the following code as per the "Creating a New Layout" guide:
      <?php if (isset($fparams->contentMiddle)) : ?>
                              <div id="rt-content-middle">
                                  <?php echo $fparams->contentMiddle; ?>
                              </div>

      I've also added the positions in the xml file accordingly.

      I'm assuming I need to insert a set of parameters for contentMiddle but I can't find where to put these params.

      I'd much appreciate urgent advice.

      For your information I'm trying to achieve a newsroom layout which has contentTop comprising 1 module (RokStories) in poistion A, contentMiddle with two k2 Content modules in positions A and B and contentBottom with modules in A,B and C positions.

      Sidebars (2) are two the right of the screen.

      Be Well,

      CHRIS YATES
    • CHRISY's Avatar
    • CHRISY
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: ADVICE REQUESTED: NEW LAYOUT

    Posted 13 years 6 months ago
    • Hi Guys,

      Could really really do with some advice on the post above from yesterday.

      It's getting critical to site completion!

      CHRIS
    • CHRISY's Avatar
    • CHRISY
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: ADVICE REQUESTED: NEW LAYOUT

    Posted 13 years 6 months ago
    • Guys,

      Fixed it myself the ugly way.

      For benefit of anyone else looking to do a similar layout (i.e. top, middle and bottom in content (mainbody) area, here's the detail as to how I did it:

      1) Open body_mainbody.php
      2) Decide where you want the additional content to be
      3) Insert the following code:
      <div id="rt-company-wrapper">
                              <div class="rt-leftcol1">
                              <jdoc:include type="modules" name="column1" style="xhtml" />
                              </div>
                              <div class="rt-rightcoll">
                              <jdoc:include type="modules" name="column2" style="xhtml" />
                              </div>
                              </div><div class="clear"></div>

      4) Open templateDetails.xml and insert under <positions> the following:

      <position>column1</position>
      <position>column2</position>

      5) Set modules to column 1 & 2 respectively.

      6) In your appropriate CSS file add the following code:

      #rt-company-wrapper {padding: 0 15px;background:}
      .rt-leftcol1 {width: 280px; float: left; clear:right;}
      .rt-rightcoll {width: 280px; float:right; clear:right;}

      I've used this to to generate a mainbody layout of Rockstories in contentTop, two k2_content modules in the company wrapper floated left and right, which allows me to use contentBottom for three columns of modules.

      Think of it like a pyramid (i.e. 1, 2, 3) with two side bars to the right and is for a news room layout.

      Hope this helps someone.

      Be Well,


      CHRIS

Time to create page: 0.049 seconds