Recent Topics

1 Dec 07, 2006 18:26    

First-time poster looking for some help (and my apologies if I missed this elsewhere) ...

I have set up my blog to be displayed within a larger html page as a server-side include within that page. I am using a scaled-back skin that only displays the blog entries and categories. When the blog is displayed, it uses the style sheet of the page it has been included in, to provide a consistent look and feel. (I guess I am basically using the blog as a content management system.)

Unfortunately, when you click on internal links, like the categories or "read more", etc, the link opens using only the skin and is no longer included in the larger page. Is there a way to have these links open while staying put in the SSI coded "mother" page? Is there a better way to do this that would bypass the SSI strategy?

Part two of the problem is that I would then like external links to open in a new separate window, but I'm thinking this would probably be less of an issue, since I can actually get to that code in the edit window and could create a work-around for those if nothing else.

Thanks ahead of time for any input.

Eddie

2 Dec 08, 2006 01:20

You have to let b2evo use the URL of the page where it's included through SSI.

You could use e.g. Apache mod_rewrite with it or use a "stub file" and let it point to your main index.php (or whatever you've setup).

3 Dec 08, 2006 13:59

Thank you very much for your help, blu. I don't mean to be dense, but I'm not sure what you mean by letting b2evo use the URL of the page where its included. Would it be possible to explain in a little more detail? What does the stub file contribute? Also, what is it about that that allows it to work?

Thanks again,
Eddie

4 Dec 08, 2006 17:14

Where's the page you have integrated b2evo?

You could setup an absolute URL for your blog, e.g. http://example.com/foo.php and then b2evo would use that for the blog. foo.php would then be a stub which displays your page where you've integrated b2evo as SSI.
If you have several different URLs where b2evo is integrated, you would have to set the blog URL before or while including/calling b2evo. You could try something like


$baseurl = "http://url-to-this-very-same-page/..";

Your question is very specific, while it's not really clear.. so this is and was only meant as ideas for you to proceed.

5 Dec 08, 2006 17:47

The site is at: http://www.arn.org/_idarts/

Sorry, let me see if I can clarify a bit:
The page currently displayed at the above url displays the blog using the following url within an SSI command: http://www.arn.org/_idarts/blogs/index.php?blog=1

The problem is that when you click on any of the internal links within the blog (read more, next page, categories, etc), the subsequent link is displayed outside of the original web page that the SSI was placed into, using only the default blog skin. (actually the "next page" link isn't working at all, but one mess at a time)

When I display the blog in the home page using a stub file instead, the page displays the blog using said stub file, but the link problem still occurs, and the resulting display actually defaults to the skin specified as the blog default.

If I understand the concept of the stub file, by using a stub file as the call-up for the blog, I should be able to customize the stub file in a way that allows the internal links to open within my original page and not lose the SSI. If this is correct, and is what you were getting at in your original reply, I guess my next question is what would those customizations consist of?

My overall goal is to be able to call up the blog with the SSI command, and have any resulting internal links open within that same SSI command, and not change the outer page.

Thanks,
Eddie

6 Dec 09, 2006 00:56

Can "SSI" only open URLs, not local files?

If so, setting up a absolute URL ("http://www.arn.org/_idarts/") for the blog (and using an empty stub "file") would let b2evo use this URL also internally.


Form is loading...