Embedding in a custom layout/application
Tarken
Joined: 2005-01-04
Posts: 7 |
Posted: Fri, 2005-01-07 16:41 |
I posted a topic about this in the "Customizing Gallery" forum, because it really does fit under that topic, as well as this forum's topic. First off, for a bit of background, here is that thread: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=24624 I've noticed that a few other people seem to be trying something similar to this. Is there perhaps a need for a "custom" GALLERY_EMBEDDED_INSIDE_TYPE? That way, all of the header/footer code is handled by the encompassing page, but gallery still displays all of it's contents as well as still handling all users and everything else it normally does. Or is there perhaps an easier way to do this? |
|
Posts: 7
P.S. If the answer is just "hack it yourself", I'm good with that :P
I just want to know if there's an easier way
Posts: 2322
The way to do that is simply to use the files in the html_wrap folder to customize the layout. Since the html_wrap files are PHP, you can simply include any other files you want and do anything inside them.
Anything that specifies EMBEDDED_INSIDE must do its own userdb handling in G1, so it's pretty much out of the question without a major rewrite.
Posts: 7
Well see, I've done that already.. but as I described in my other post, I get output like this:
What I need is a way to escape the gallery generated html/head/body tags, and provide my own in their stead.
Oh and here's the contents of my html_wrap files, just for info purposes:
[jwilhelm@harmony html_wrap]$ cat wrapper.header.default
<?php
require( $_SERVER[ "DOCUMENT_ROOT" ] . "/standard.inc.php" );
start_page( "gallery", $omit_tracking=true );
?>
[jwilhelm@harmony html_wrap]$ cat wrapper.footer.default
<?php
end_page( $omit_tracking=true );
?>
Posts: 23
Any luck with that? That is what I am searching for also :D
THX
Posts: 7
Nope.. no luck. And in fact, my situation is worse now. I've converted my page to XHTML, so I'm surprised the page is even rendering right still. Now I've got this:
...as the page header. Pretty nasty.
I think the solution is going to be a "hack it yourself"... which I just haven't had the time for lately.
Posts: 23
Is there a way, for example, to just include albums.php, view_album.php and view_photo.php to a custom made layout to include gallery into a site?
Something like this: