To be brief, I have one include file that is a menu. I set this include to be named as top-menu.inc. The reason being is that I like to just edit one file for updates so that I don't have to edit multiple header/footer files. Easy enough.
Now this include is being used for ASP pages and Wordpress blog. For ASP pages, I do this:
<!--#include file="store/pc/menu/top-menu.inc"-->
For the Wordpress blog, I do this:
<?php include("../store/pc/menu/top-menu.inc"); ?>
This works fine but I cannot get this to work for G2. I basically added that line of code to my /local/theme.tpl file along with my other html code but it doesn't work.
To be clear, the blog folder location is located in the root. The gallery location is also located in the root. I really thought that using the same file path would work but it doesn't. So I tried the following:
<?php include("/store/pc/menu/top-menu.inc"); ?>
<?php include("../../store/pc/menu/top-menu.inc"); ?>
<?php include("../../../store/pc/menu/top-menu.inc"); ?>
<?php include("../../../../store/pc/menu/top-menu.inc"); ?>
None of them work. Is the method I am using wrong? Is there a way to allow one file such as top-menu.inc to be an include for all three software (ASP, Blog and G2)>?
Thanks.
Posts: 10
Nevermind. I found the answer posted here:
http://gallery.menalto.com/node/79615
Thanks.