Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Include home.html

Quote Reply
Include home.html
I want to include home.html on an .shtml page using

<!--#include virtual="/shop/page.cgi?p=home"-->

When I use this, the site will be included, but with 'unknown tags'
for category and grand total.


What do I need to do?



--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Include home.html In reply to
Do you get those 'unknown tag' errors when doing it without SSI?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [A.J.] Include home.html In reply to
When I call page.cgi regular, the page will be displayed proper.

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Include home.html In reply to
I think it has something to do with the fact that you can't pass ?'s along a SSI call? Someone correct me if I'm wrong Wink I think you have to pass them along in the actual page that is doing the SSI call, i.e index.shtml?p=main. Do you see what I mean?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [A.J.] Include home.html In reply to
Thanks for reply. I think I will try i in other way.

I will open a new thread.

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Include home.html In reply to
Hi,

The problem is when you pass in p=home you are saying parse and display the home.html template. This does not do the extra work needed to generate the category stats, and totals. To display the home page, you just need to call page.cgi with no arguments and it should work.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Include home.html In reply to
I developed the SSI include feature for Links 2.0.
Yes, I have faced the problem, that the statistics are generated separetely. So stats are not generated, when the page display is done.

My solution:
I placed some IF statements to check if there is an SSI include going on. If yes, then the statistics are generated (calling stats routines).

The solution is that simple.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...