Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: Adding HTML content to sidebox areas

    Ok what I want to do is add HTML code to the left side of my site in the background area.

    http://www.formulaexo.com/shopexo/

    Notice the menu on the left side that's how I want it however I rigged that with sloppy HTML code so it would be displayed there.
    Code:
    <div style="position: absolute; top: 21%; left: -3%; width: 229px; height: 410px; z-index: 1"></div>
    And that doesn't work when your resolution is changed it messes up.

    So I wanted to add this content (fireworks .gif menu which requires HTML to work right) To the background left side via TPL files or where ever it can with be done so the template knows it's there and works correctly at different resolutions.

    If this still confuses you let me know : )
    Last edited by shackle; 21 Aug 2006 at 06:24 AM.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Adding HTML content to sidebox areas

    If you want content to appear "outside" the body of the Zen Cart-generated site, you'll have to use positioning.

    In terms of "where" to put the code, why not just put it in a new left sidebox?

    the "best" place depends on what code you finally use to display it. What you are using right now is ... well ... not good.

    If you're bent on having it outside the store area, the journey ahead will be interesting...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: Adding HTML content to sidebox areas

    If you're bent on having it outside the store area, the journey ahead will be interesting...

    I'm willing to try if anyone has the time, and will to help me. Um If it had to be in the sidebox area could it be done so it isn't inside a sidebox?

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Adding HTML content to sidebox areas

    Zen Cart draws its content via tpl_main_page.php

    Inside that, it calls content for the header, then the "left column", then the "center section", then the "right column", and then the footer.

    You've got ALL of that set to show up in the middle of the screen, with whatever amount of space the customer sees on the left/right based on their screen resolution.

    If you want to put something in the left column and then use CSS to push it outside the main content area, go ahead. You will lose the ability to expand your center section content into the left column. If you want to put your menu code into the footer, and then reposition it up and left from there, I guess that'd work. To do this, stuff it somewhere in tpl_footer.php, and wrap the appropriate block tags around it so you can relocate it happily.

    It all depends on browser compatibility. The challenge of getting all browsers to honour your positioning requests will be fun I'm sure.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. PHP, JacaScript, & HTML areas on pages
    By Donn in forum General Questions
    Replies: 8
    Last Post: 10 Feb 2009, 03:50 AM
  2. Replies: 4
    Last Post: 18 Apr 2008, 05:54 AM
  3. Adding content to cart summary sidebox
    By Cal in forum Addon Sideboxes
    Replies: 0
    Last Post: 23 Mar 2007, 01:26 PM
  4. consistent size for content areas...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 20 Sep 2006, 12:33 AM
  5. Adding html in sidebox
    By tdslori in forum Basic Configuration
    Replies: 7
    Last Post: 17 May 2006, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg