We're having a great deal of difficulty getting some HTML content to appear within our Drupal site.

It seems that Drupal doesn't have a HTML wrapper available for 4.7. The HTML Wrapper is a function that is available in most CMS software, which makes it strange that there is no official offering. The only one I could find that fits the description was "wgHTML" but it only works with 4.6

We also tried using inline frames, PHP file_get_contents, etc but those aren't solutions.

Any ideas ?

Comments

drubeedoo’s picture

Do you require the HTML to be accessible as a stand-alone page, or do you want it displayed properly within Drupal?

If within Drupal, check to make sure your Input format = Full HTML, not the default Filtered HTML.

sikosis’s picture

Yeh it's in a different directory ... rather than something I'm creating.

We've decided it's easier to make Drupal launch a new browser window with the HTML rather than try to bring it within Drupal.

So, not a fix, a workaround ...

geste’s picture

"Do you require the HTML to be accessible as a stand-alone page, or do you want it displayed properly within Drupal?"

Let me chime in because this is my leading Drupal quest at the moment...

I would like to bring in some static HTML pages as well as some mixed (very basic) PHP/HTML that grabs some sortable tables from a (non-Drupal) MySQL database on the same host. I can conceivably put these HTML/PHP files in directories under the Drupal root if needed.

You say: "If within Drupal, check to make sure your Input format = Full HTML, not the default Filtered HTML."

OK, I found that, but bringing the original question down to a more basic level, is there a reference of any sort of how to include/wrapper other HTML and/or PHP code in a consistent way?

Now of course I said "sortable tables" above meaning that if I wanted to put a wrapper around a 3-column table (say of names and office numbers) and wanted to let people change the column that is sorting, it would have to trigger a complete redraw of the Drupal page that is acting as a wrapper. I think! So I appreciate that this might not be simple, but if anyone has any pointers on doing this short of a complete integration project, I'm interested.

Jim

VM’s picture

toi pull php in, you would use the php filter. to pull in HTML you would use the FULL HTML filter. otherwise the php or full html will be stripped.

the input formats can be expanded prior to submitting the form.

so for example, create a page content type , add your HTML and PHP. Because you've added PHP you will use th PHP input format to submit the form. If there is no PHP and only HTML and you want this rendered. again use the page content type and prior to submitting the form switch to the FULL HTML filter.