Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • tom2012 Friend
    #118994

    Is it possible to customize the mainbody for different sections of my site? For example, for my splash page I have published static content into a new user-8 block above the mainbody section (raw html using the Jumi module). The issue is, the bg color of the static content is different than the mainbody bg color set in #ja-mainbody (css). I would like to change the bg color of the mainbody to match the splash page (but not site-wide), or better yet, ‘deactivate’ the mainbody for that page only. Which brings up another question: Can you load a module-only page without mainbody content?

    I would publish static content to the mainbody, but I run into issues with margin/padding, bg color issues, etc. For example, I’ve been able to append a suffix to static content, but that only alters the static container within the mainbody. And when I publish static content to a user block, as I mentioned above, the best I’ve been able to accomplish is having an empty bit of white space below it where the (empty) mainbody exists. I would like to have creative control over the splash page design. Is this possible?

    Thanks for your assistance.
    Tom

    tom2012 Friend
    #215180

    Okay, here’s what I did:

    1. Created a duplicate of index.php in my template directory and renamed it index2.php

    2. Within the code of the index2.php page I commented out the mainbody section (see below)

    3. Grabbed the url of the current splash page I’ve been working on

    4. Created a new mainmenu item, type: “Link – Url”, pasted the url above for the address, and within that url I changed “index.php” to “index2.php”

    5. Placed the new menu item first in the mainmenu structure, thereby making it my new home page by default

    Now, my home/splash page shows the index2.php page which has no mainbody content, but all other sections/links revert to the standard index.php page

    Cool.

    <blockquote>Re: #2: Commenting out the mainbody section (place within <!– ‘code’ –> brackets)

    <!–<div id=”ja-mainbody”>
    <?php mosMainBody(); ?>

    <?php if ($footermodule) { ?>
    <!– BEGIN: SPOTLIGHT –>
    <div id=”ja-spotlight” class=”clearfix”>

    <?php if ( mosCountModules(‘user1’) ) { ?>
    <div class=”ja-box” style=”width: <?php echo $divwidth ?>; height: <?php echo $divheight ?>;”>
    <?php mosLoadModules ( ‘user1’, -2 ); ?>
    </div>
    <?php } ?>

    <?php if ( mosCountModules(‘user2’) ) { ?>
    <div class=”ja-box” style=”width: <?php echo $divwidth ?>; height: <?php echo $divheight ?>;”>
    <?php mosLoadModules ( ‘user2’, -2 ); ?>
    </div>
    <?php } ?>

    <?php if ( mosCountModules(‘newsflash’) ) { ?>
    <div class=”ja-box” style=”width: <?php echo $divwidth ?>; height: <?php echo $divheight ?>;”>
    <?php mosLoadModules ( ‘newsflash’, -2 ); ?>
    </div>
    <?php } ?>

    </div>

    <!– END: SPOTLIGHT –>
    <?php } ?>
    </div>

    </div> –></blockquote>
    Or, I suppose you could also make a duplicate of the template you’re using, modify the index.php page to exclude the mainbody section, and in the admin back end “assign” that modified template exclusively to your home page.

    Cool

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

This topic contains 2 replies, has 1 voice, and was last updated by  tom2012 17 years, 8 months ago.

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