Need help embedding Gallery

Grinch

Joined: 2002-08-28
Posts: 24
Posted: Wed, 2002-08-28 01:00

I'm not sure what the best way to do this is. I've got some help revamping my website. It's all done from scratch. The entire site is inside a table to keep it at 750 pixels wide. I've got a custom top menu bar with drop downs using some java.

My question is, what's the best way to merge Gallery into it? I can't just stick the menu in the gallery.header.default file as recommended. I've tried it and I seem to loose my table. Do I have any other options?

 
paulm

Joined: 2002-08-27
Posts: 15
Posted: Wed, 2002-08-28 02:09

sorry i am of no help, but this is the same thing i am trying to do..

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Wed, 2002-08-28 03:37

What you can do is split the index.? page of the original site in half (without specific page info I can't say where)
and create gal_header.txt and gal_footer.txt files and save to site root

then add lines like:
include "../gal_header.txt"; to the wrapper.header file
include "../gal_footer.txt"; to the wrapper.footer file
before the closing ?> tags

Using this basic idea you should be able to embed into any site.

Am I on the right track?

 
Grinch

Joined: 2002-08-28
Posts: 24
Posted: Wed, 2002-08-28 03:43

Well, I guess the big question is, can you break up table tags in two seperate pages, and then include them both to make them as one. Will the two "halves" of the table interact properly. I had thought about trying it, but haven't had a chance just yet.

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Wed, 2002-08-28 03:51

Yes, the client does not care where the source originated, as long as you split header and footer correctly between cells:
( closing </td> at end of header )
( open <td> at begin of footer)
I have setup quite a few sites using similar methods :smile:

Good Luck!

 
Grinch

Joined: 2002-08-28
Posts: 24
Posted: Wed, 2002-08-28 04:42

Ok... I'm getting closer. I've figured out how to split things up. Thanks for the help so far.

Now how do I get the CSS and JS files too load with my header? It needs to go in the <HEAD> section. Right now my menu is completely dead because it's not loading. Is there somewhere else I can attach it to? Or is there a trick I can use to make them load after the fact?

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Wed, 2002-08-28 13:10

CSS will take adding to the standalone_style.css that's in your css folder...

to include other JS files, you would either have to include it in the function getStyleSheetLink() somewhere, or add it manually to the <head> sections in the numerous places <head> is used.
(do a search for getStyleSheetLink() -or- <head> to find all the places you would need to modify)

Good Luck

 
Grinch

Joined: 2002-08-28
Posts: 24
Posted: Wed, 2002-08-28 13:35

I don't think the CSS idea is going to work. I'm making the Header/Menu global. Which means that every page will access it. I don't want my site to rely on the Gallery CSS file. It should be the other way around.

 
muggles
muggles's picture

Joined: 2002-08-19
Posts: 22
Posted: Wed, 2002-08-28 13:58

another idea is to change the function _getStyleSheetLink in util.php to point to *your* css ?