Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Inserting ssi

Quote Reply
Inserting ssi
When using dynamic pages how do I insert a ssi call tag? I am thinking it would be (%include something/ssi%). I am not clear on how this is done, or the correct syntax.
Quote Reply
Re: [jgkiefer] Inserting ssi In reply to
You can't use SSI in dynamic pages. Just use <%include /path/to/filename%>

Last edited by:

RedRum: Oct 3, 2001, 3:54 AM
Quote Reply
Re: [RedRum] Inserting ssi In reply to
Actualy I also want to use SSI with dynamic pages.

I want to use <a href="<!--#echo var="HTTP_REFERER" -->">BACK BUTTON</a>
for Navigation.

Is there no way to get it running? Maybe special server settings?

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Inserting ssi In reply to
Hi,

No, as mentioned you can't use SSI within CGI generated pages.

However you could probably use a global tag.

Maybe something like:

sub {

my $referer = $ENV{HTTP_REFERER};

return $referer;

}

Then use <a href="<%Tag_Name%>">

Hope that helps!
Quote Reply
Re: [Michael Skaide] Inserting ssi In reply to
Can you not just use <a href="javascript:history.go(-1)">GO BACK</a> ?
Quote Reply
Re: [RedRum] Inserting ssi In reply to
No, I posted this topic in another thread.

I need to use a shopping-card-button on the detailed pages. Itīs possible to set everything with static pages, but not with dynamic pages, which I need to use when I let the visitor use the search function.

I must give the shopping-card-input an URL to let the card know where to jump back from the card (continue shopping).

There is only one way to have this URL. At the detailed page I must have the URL of the site where the visitor comes from (category or search result). I can forward this URL to the shopping-card as the back-link.

You know what I mean?

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Inserting ssi In reply to
Hi,

Try my original option with a global tag. I think it should work.


Quote Reply
Re: [RedRum] Inserting ssi In reply to
You are right!!

It seems to be working!!

Now I need to get range searches running, than I have it like it should be.

See: http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=161769;sb=post_latest_reply;so=DESC;forum_view=forum_view_collapsed;

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [RedRum] Inserting ssi In reply to
Paul,

the last weeks I worked with your idea of the back-link

sub {
my $referer = $ENV{HTTP_REFERER};
return $referer;
}

While testing I used only dynamic pages, and it works fine.

Now when I wanted to use it with static pages I notice that the solution does not work.

All the links created with the tag <%backlink%> link to the admin section.

....../sql2/admin/admin.cgi?page=build_nav.html

because of $ENV{HTTP_REFERER}

Ok, I could use dynamic pages, but I would like to habe dynamic only for searching. Static should be the basic, it brings me more visitors by search-engines.

Do I need to switch to .shtml extensions? Or is there another solution?

Michael






--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Inserting ssi In reply to
Hi Michael,

I don't think the global option will work with static pages, as the link will be set when the pages are built, not when the visitor views the page.

Why don't you use the global for dynamic pages, and the javascript solution above for static?

--
Matt G
Quote Reply
Re: [mglaspie] Inserting ssi In reply to
Matt,

itīs very confusing. Let me explain ...

I use a shopping card and when users click on an order-button, they will be moved to the shopping card. On the shopping card needs to be a -continue-shopping-button-.

This button should link the user back to LinkSQL.

Problem is: the order-button is on a detailed-page. Itīs not possible to use javascript-history, because of the problem that user run into a circle, that they donīt find the way back to categories.

For example ... back-link on the detailed page is javascript-history!

The user clicks the order-button on the detailed-page, he move to the shopping-card, there is a link back to the detailed page, back on the detailed-page he clicked on the javascript-history-back-link which should bring him back to the categorie listing, but it brings him back to the shopping-card.

I found a way to code a link which tells the shopping card to got back to the right category. This works fine. But this canīt be the final solution, because I can only use static-pages. With dynamic-pages (searches) this hardcoded back-link does not work.

Confused?

Anyone elseuseing a shopping card? Ideas are welcome!!

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Inserting ssi In reply to
In Reply To:
Confused?

Yeah, a little...

On what pages are you wanting to give the visitor a "go back" button? And from there, where are they going "back" to?

So, you've got:

category -> detailed -> shopping cart
search -> detailed -> shopping cart

On the detailed page, you want a button that goes back to the category or search, right? And on the shopping cart page, you want them to go back to the detailed page. Or all the way back to the category/search page? (this would be better, IMO, if you say "continue shopping"...)

Now, on which page are you not able to get the back button working how you want?

If you can show us a (non)working example, that would be helpful.

--


Matt G
Quote Reply
Re: [Matt Glaspie] Inserting ssi In reply to
Matt,

I donīt know if there is way to set right backlinks when using static pages, so I decided to use dynamic-pages. This works. Itīs very important to give the user the possibility for searches. So dynamic is the solution for the moment.

But I needed to remove the -previous- and -next- links on the detailed pages.

I think this is a very strange topic, but very important if you want to offer ecommerce.

I know from many emails that user (mostly new to, or not very familiar with internet) have problems to navigate within the web-site or donīt understand the steps of the shopping-card.

Pages with explanations of help or how to do are not the reason. People donīt like to read instructions. They have not time, or are not in the condition to read.

Maybe a GT shopping card can be a way, where itīs possible to code the backlinks in different (but always working) way.

Alex, take a look at: http://www.merchantorderform.com

Something like that would be a good part of the future community-script.

Michael



--
Michael Skaide

http://www.cycle24.de