 | |  |
 |

trandel
User
Jan 26, 2007, 5:23 AM
Post #1 of 3
(684 views)
Shortcut
|
|
template includes
|
Can't Post
|
|
Hi I have set and am running my templates just fine for a magazine publisher. They are now maintaining all of the articles for each of their publications whilst I continue to maintain the other parts of their website e.g. navigation menus, banner ads, database queries etc etc. For technical support reasons the AM part of the site resides under a different domain hosted by a different ISP from their main site. However, it is running well and we are all very happy - we even have a migration to AM 2 in plan for 2007! BUT I am using menus and banner ads as include pages on the main site. So I simply copied the html and placed it as includes text on the Article Manager content domain. The text html actually 'includes' the same images from the other domain by using the full http:// format - so we only need one copy of any image used. I am now having to do some maintenance work on the banner ads and it has occurred to me that surely all I have to do is change the include text in AM to point to the page on the other domain? So instead of (for example): <!--#include file="myincludes/palefttop.txt"--> <!-- template include : myincludes/palefttop.txt --> I could use the following in the template instead: <!--#include file=http://www.maindomain.com/includes/banner.htm --> <!-- template include : http://www.maindomain.com/includes/banner.htm --> This would mean that any maintenance on the menus or banner ads would only need to be carried out on the main domain and I would not need to carry all this duplicated html on the AM domain. Is this a valid assumption? Regards Tony Randell
|
|
|  |
 |

ross
Staff
/ Moderator

Jan 28, 2007, 9:00 AM
Post #2 of 3
(675 views)
Shortcut
|
|
Re: [trandel] template includes
[In reply to]
|
Can't Post
|
|
Hi Tony. Thanks for posting! To be honest, my first thought is that no, those includes won't actually work for you. When you are trying to include files using SSI's like that, the files would actually need to be on the same domain as you because the path you give them is a URL. Now, you had mentioned that using the full URL was working for you already so it could very well be that your server was setup in a way that let this happen. If that is the case, your includes should work ok. I haven't seen something like this in the past though so I am not 100% sure. I say, give it a shot and see what happens. Perhaps you could try it out on a test file. Try creating test.shtml and putting the include in there. The template include will most likely not work in a test file as that is specific to Article Manager but the SSI (that's the first one in each set you have there) should. Of course, keep me up to date with how you are making out . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

trandel
User
Jan 28, 2007, 10:04 AM
Post #3 of 3
(673 views)
Shortcut
|
Hi Ross, I did try it out and it didnt crash with any error BUT it didnt work either. I can definitely pick up images from the other domain using AM include text files. I did some further research and it seems that this ability to point to an external domain with an include was removed a few years ago for security reasons. I have to admit I would not like other people just including pages from my websites either! I also found an interesting script called 'The Executer' which seems to be the answer but am battling to download it - its free but you get passed to Paypal which wont accept a zero payment yada yada yada .................... maybe it's also been withdrawn. I have emailed the authors but they havent responded yet. Regards Tony Randell
|
|
|  |
|