Hi all,

Does Drupal have frames?

cheers, P

Comments

rjung’s picture

Generally speaking, no.

My understanding is that you can probably hack Drupal to support frames, but it'd a major effort -- Drupal's page-serving mechanism isn't really built for frames.

--R.J.
http://www.electric-escape.net/

--R.J.

parmenion’s picture

Thanks - so does that mean it's similar to joomla in this regard... it uses modules in pre-set positions to achieve a similar result as frames?

sepeck’s picture

Output display is the result of your theme. Perhaps if you elaborated more on what you are looking to accomplish that you think you need frames for, you might get a better answer.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

parmenion’s picture

Thanks Steven, good suggestion.

I need to have the user be able to stream a video whilst they similtaneously read text that relates to the video. the text is long, so i was using frames to:
1. ensure the video does not scroll off of the screen and
2. ensure the video continues to play when the user follows a link in the text that bring more info up in that same frame where the text was.

I did think about using a catalogue/shopping cart solution if i could find one that allowed me to have video in the product descriptions... but maybe that's a dumb approach.

would love to hear your thoughts on the best approach to take...

greggles’s picture

The "web2.0" way to handle that would be to put the text into a space that gets refreshed by ajax xmlhttprequest javascript to show any links or next pages.

I'm not sure if Drupal is really well suited to that task or not.

--
Knaddison Family Blog

parmenion’s picture

Great, thanks. I'm happy to not use Drupal as I've not yet started the project. Starting from scratch - what system/lanuage would you recomend?
Cheers for your help!
P

sepeck’s picture

You can do iFrames and there is at least two other people who have done this with audio type content. You may want to look at the podcast related modules for some ideas on the approach. You also may want to look at drupalart.com for some other ideas. I don't deal with audio/video content so don't have any other ideas for you.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

parmenion’s picture

Hi - not sure what the difference is - but would iFrames be what I'm looking for here...?

webwright’s picture

I know it's not the question you asked, but I'll throw it out there anyways. Frames have about a billion downsides (search engine ramifications, bookmarking difficulty for the user, etc).

Even if you are looking for one of the few things that frames were historically good for (navigation that doesn't scroll away), you can pull that off nicely with CSS nowadays.

So please, don't use frames. Ever ever ever! ;-)

___________________________________
Tony Wright
Day2 Technology Ventures - Venture Capital for Technology Startups

rjung’s picture

Even if you are looking for one of the few things that frames were historically good for (navigation that doesn't scroll away), you can pull that off nicely with CSS nowadays.

I agree for the most part, but remember that the vast majority of web surfers are still using Internet Explorer (ick), which supports CSS about as good as Dick Cheney practices safe hunting. ;-)

A lot of times I've had to resort to inelegant, non-CSC-ish solutions for site designs just because "Must look great in IE" is a major requirement.

--R.J.
http://www.electric-escape.net/

--R.J.

tcee’s picture

I personally want to wrap the contents of another site in a frame in a node in my drupal site. now, joomla has a module for that. Even though i would appreciate other methods (web 2.0, ajax etc), I still want this specific knowledge of using frames.

Also, imagine a scenario in which the content of another website is displayed in a node or block such that following any link in it would not result in a total page refresh. but instead let my audience remain on my drupal website. For this, any help would be great. please contribute

vm’s picture

place your frame tags and HTML in a node or a block use the FULL HTML input format and save.

MarcElbichon’s picture

Try InsertFrame module. It acts as Joomla

jaydj’s picture

I have a smiliar dilema. I have a client who wants his dedicated streaming video on the page at all times.
Well, the placing of that video on a permanent block on the site can be done. But it would cause the video to refresh and reload every single time a new page is called, even if the video will always be on any page.

The video (which has it's own plugin code so no worries there) has to stream all the time while the user is on the site and on any page of the site.

So I figured, frames would be the only and best option. I dunno if I can put the entire site's content on AJAX just to make it load without having the page reload. If we're talking about tons of data, I think it's not feasible.

Any suggestions ? or ways how to use frames on a drupal site ?

normal_orphan’s picture

OK, I had this problem as well and this is the solution that I came up with.

1) Rename the 'index.php' file to 'inside_index.php' (or whatever you want really)

2) Create a new 'index.php' page with the frameset that you want.

3) In the mainframe of 'index.php' add the src='inside_index.php'

4) open your .htaccess file

5) Change the following:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] (around line 107)
to:
RewriteCond %{REQUEST_FILENAME}index.php !-f
RewriteRule ^(.*)$ inside_index.php?q=$1 [L,QSA]

So thats about it and like I said you can rename the 'inside_index.php' to whatever you want.

PLEASE REMEMBER THAT YOU MUST NOT REFERENCE BACK TO THE INDEX.PHP PAGE! YOU MUST NAME YOUR HOMEPAGE 'HOME' OR 'FRONTPAGE' OR WHATEVER BUT THE INDEX OR '/' REFERENCE SHOULD NOT BE USED AFTER THIS CHANGE.

herni7881’s picture

could you help me with the part where we create the frameset and the src='inside_index.php' ?
would you also be kind to show the example of newly created index.php file?

d------’s picture

Just read all the comments here as I have a project for an audio (music) / social networking site. A requirement is that the audio player in the header region can continue to play uniterupted throughout the site uninterupted - in a similar way to http://we7.com

The only way of doing this (as much as I hate frames too!) is to use frames.

something like...

---------------------------------
|           Player here
---------------------------------
| 
| 
|            Drupal.in.here 
|                                  
|                                   
---------------------------------

I would not however rename Drupals index.php (nice idea though!) but would leave index.php alone and use an index.html file instead... in your web server settings just make sure index.html is above priority of index.php as the default document. On Windows IIS this is done in IIS Manager, the settings / properties for the web site and on Apache this is in the sites conf file "default document" or similar.

I'm going to give this setup a try and let you know if it works well or not...

Dan

yannickoo’s picture

I just need the same like dangibas, but I don't understand why you use index.php.

It would be better when you use page.tpl.php then you're able to display a block in a frame (where your player is inside).

dangibas? Any news?

vm’s picture

because page.tpl.php reloads on every page change and the user is trying to avoid that so that the player doesn't restart

yannickoo’s picture

Ah okay, did you find a solution?

dman’s picture

Related, but not a full solution,
Using the 1pixelout flash audio player lets the sound pick up where it left off when you move between pages. Uses cookies. May incur a small hiccup in playing when clicking through pages, but is a valid attempt.

yannickoo’s picture

I use the mediafront.module ;)

onceltuca’s picture

Did this attempt work? How did you do?

normal_orphan’s picture

Totally agree with using index.html and then index.php within in order to maintain integrity as much as possible...i was bored though so just kind of did it quick and dirty :P

selinav’s picture

index.html with an iframe works great in IE, Chrome and FF but it doesn't work on Opera 11.60, it displays only the iframe, have you got an idea?