At 20:01 23/06/00 +0200, you wrote:
>Hi!
>
>Some time ago we woted to put in some code for larger sites, with the <<back 
>forward>> buttons.
>
>I made a site for a newspaper, and added some code to get this. However I 
>don't have the URL as a variable on the item page, so there is no direct way 
>back. Also I belive Bob did post some code for this purpose? Are you out 
>there Bob?

Yeah, I'm still around. I've been on holiday, resting my tired brain.

Now, I am picking up on code I wrote some months ago, and my memory isn't
what it used to be, but here goes...
You have to find the department that the item came from

###snip###
if( !isset($department) )
{
        //get the department for this item
        $department = $Item["Department"][0];
}
$department = intval($department);
### end snip###

Then you need to build a link to put on the item page

###snip###
print("<A HREF=\"" . ScreenURL("department.inc") . "&department=" .
$department . "\">Back to previous Department</A>");
###end snip###

>
>Can we try to put his or the snippet I used  into FreeTrade?
>
>Can I have some help with this?
>
>I don't know if you agree with me on this, but I am quite obsessed with the 
>point of getting a link from item page and back to department page even if a 
>order is made. Simular way as the www.autocity.de does.
>
>- Maybe it will be possible to say that if URL contains 
>SCREEN=department&department=3&offset=30 than store this as a global 
>varible, and than print this in a URL on item page???  The session ID needs 
>to be keept.
>
>Also this code shuld be put into FreeTrade same way as wishlist is now, with 
>a option in glabal_settings to turn it off, I suppose?
>
>I suppose I will try to adapt the code I used at www.idag.no for starters. 
>But If anyone have anything better or have done this, please speak now! :-))
>
>Any and all help on this is apriciated. I REALY need some help on this one!!!
>
>Bjarne Hansen
>Oslo Norway
>
>
>
>------------------------------------------------------------
>To subscribe:    [EMAIL PROTECTED]
>To unsubscribe:  [EMAIL PROTECTED]
>Site:            http://www.working-dogs.com/freetrade/
>Problems?:       [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to