Book a Demo

Author Topic: HTML Template Fragment...  (Read 2960 times)

jmcdonnell

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
HTML Template Fragment...
« on: July 30, 2012, 07:19:45 pm »
Hi all,

I'm trying to customize a HTML report template through the template editor in the resources panel.

One of the items I'd like to remove is the ToC/navigation bar along the left side of the window.  No matter how I try to remove it by changing the default settings I always seem to get a 'Loading' message and no other output.

Does anybody know how I can achieve this?  I don't even care if the javascript still runs in the background, I just don't want the bar to be visible!!!

Thanks in advance,




Joe

*** UPDATE ***

I've been tinkering & I think that the ToC is displayed in an <iframe>; however, I added the code
Code: [Select]
width='0px' to try & make it invisible with no luck...

*** UPDATE ***

I worked it out!  It was as simple as changing the 'CSS - Main' style sheet at this point to include the 'display: none;' as shown below:

Code: [Select]
#tocIFrame {
      background: #FFFFFF;
      border: 1px solid #999999;
      border-left: 0px;
      height: 100%;
      margin: 5px 5px 0px 0px;
      width: 250px;
      display: none;
}

However, now I can't get the main body iframe to cover the gap that's been left!  My first attempt included changing the 'width: 250px;' value to '0px' but it made no difference.  Any thoughts???
« Last Edit: July 31, 2012, 08:53:39 pm by jmcdonnell »

Rouven

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Re: HTML Template Fragment...
« Reply #1 on: July 31, 2012, 08:52:27 pm »
Hi,

if you know your way around some JavaScript you might try to dynamically adjust the width. The template has several points you could try:
- onload-event of "Page - Index"
- onload-event of "Page - ToC"
Just look at the rendered HTML output, the generated iFrame seems to go by the id='tocIFrame'

Actually you should be able to reference that ID from the CSS as well, at least if EA really uses either of the customizable CSS for the entire page (and not just the content portions).

Let me know what you find...